From d95164d88c08659cc28a9575d47856e7e50169af Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:04:15 +0000 Subject: [PATCH 1/2] fix: update gapic-generator-java with mock service generation fixes PiperOrigin-RevId: 457524730 Source-Link: https://github.com/googleapis/googleapis/commit/917e7f21cb1dc062744c6694437cdd46219f28cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9 --- .../cloud/redis/v1/CloudRedisClient.java | 58 +- .../cloud/redis/v1/CloudRedisSettings.java | 7 +- .../google/cloud/redis/v1/gapic_metadata.json | 0 .../google/cloud/redis/v1/package-info.java | 10 +- .../cloud/redis/v1/stub/CloudRedisStub.java | 0 .../redis/v1/stub/CloudRedisStubSettings.java | 6 +- .../stub/GrpcCloudRedisCallableFactory.java | 0 .../redis/v1/stub/GrpcCloudRedisStub.java | 1 + .../HttpJsonCloudRedisCallableFactory.java | 0 .../redis/v1/stub/HttpJsonCloudRedisStub.java | 1 + .../v1/CloudRedisClientHttpJsonTest.java | 0 .../cloud/redis/v1/CloudRedisClientTest.java | 0 .../google/cloud/redis/v1/MockCloudRedis.java | 0 .../cloud/redis/v1/MockCloudRedisImpl.java | 0 .../google/cloud/redis/v1/CloudRedisGrpc.java | 1117 ++--- .../redis/v1/CloudRedisServiceV1Proto.java | 602 +++ .../cloud/redis/v1/CreateInstanceRequest.java | 543 +-- .../v1/CreateInstanceRequestOrBuilder.java | 61 +- .../cloud/redis/v1/DeleteInstanceRequest.java | 332 +- .../v1/DeleteInstanceRequestOrBuilder.java | 33 + .../cloud/redis/v1/ExportInstanceRequest.java | 453 +- .../v1/ExportInstanceRequestOrBuilder.java | 47 +- .../redis/v1/FailoverInstanceRequest.java | 513 +-- .../v1/FailoverInstanceRequestOrBuilder.java | 49 +- .../google/cloud/redis/v1/GcsDestination.java | 298 +- .../redis/v1/GcsDestinationOrBuilder.java | 27 +- .../com/google/cloud/redis/v1/GcsSource.java | 294 +- .../cloud/redis/v1/GcsSourceOrBuilder.java | 27 +- .../v1/GetInstanceAuthStringRequest.java | 342 +- ...GetInstanceAuthStringRequestOrBuilder.java | 33 + .../cloud/redis/v1/GetInstanceRequest.java | 329 +- .../redis/v1/GetInstanceRequestOrBuilder.java | 33 + .../cloud/redis/v1/ImportInstanceRequest.java | 453 +- .../v1/ImportInstanceRequestOrBuilder.java | 47 +- .../google/cloud/redis/v1/InputConfig.java | 372 +- .../cloud/redis/v1/InputConfigOrBuilder.java | 26 +- .../com/google/cloud/redis/v1/Instance.java | 3698 ++++++---------- .../cloud/redis/v1/InstanceAuthString.java | 301 +- .../redis/v1/InstanceAuthStringOrBuilder.java | 29 + .../google/cloud/redis/v1/InstanceName.java | 0 .../cloud/redis/v1/InstanceOrBuilder.java | 429 +- .../cloud/redis/v1/ListInstancesRequest.java | 442 +- .../v1/ListInstancesRequestOrBuilder.java | 47 +- .../cloud/redis/v1/ListInstancesResponse.java | 562 +-- .../v1/ListInstancesResponseOrBuilder.java | 64 +- .../cloud/redis/v1/LocationMetadata.java | 525 +-- .../redis/v1/LocationMetadataOrBuilder.java | 69 +- .../google/cloud/redis/v1/LocationName.java | 0 .../cloud/redis/v1/MaintenancePolicy.java | 842 ++-- .../redis/v1/MaintenancePolicyOrBuilder.java | 95 +- .../cloud/redis/v1/MaintenanceSchedule.java | 687 ++- .../v1/MaintenanceScheduleOrBuilder.java | 82 +- .../com/google/cloud/redis/v1/NodeInfo.java | 373 +- .../cloud/redis/v1/NodeInfoOrBuilder.java | 36 +- .../cloud/redis/v1/OperationMetadata.java | 761 ++-- .../redis/v1/OperationMetadataOrBuilder.java | 73 +- .../google/cloud/redis/v1/OutputConfig.java | 362 +- .../cloud/redis/v1/OutputConfigOrBuilder.java | 26 +- .../v1/RescheduleMaintenanceRequest.java | 663 +-- ...RescheduleMaintenanceRequestOrBuilder.java | 66 +- .../google/cloud/redis/v1/TlsCertificate.java | 736 ++-- .../redis/v1/TlsCertificateOrBuilder.java | 79 +- .../cloud/redis/v1/UpdateInstanceRequest.java | 492 +-- .../v1/UpdateInstanceRequestOrBuilder.java | 52 +- .../redis/v1/UpgradeInstanceRequest.java | 415 +- .../v1/UpgradeInstanceRequestOrBuilder.java | 44 +- .../redis/v1/WeeklyMaintenanceWindow.java | 493 +-- .../v1/WeeklyMaintenanceWindowOrBuilder.java | 49 +- .../google/cloud/redis/v1/ZoneMetadata.java | 218 +- .../cloud/redis/v1/ZoneMetadataOrBuilder.java | 9 + .../google/cloud/redis/v1/cloud_redis.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameStringInstance.java | 0 ...yncCreateInstanceStringStringInstance.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 1 + .../SyncDeleteInstanceInstancename.java | 1 + .../SyncDeleteInstanceString.java | 1 + .../exportinstance/AsyncExportInstance.java | 0 .../AsyncExportInstanceLRO.java | 0 .../exportinstance/SyncExportInstance.java | 0 .../SyncExportInstanceStringOutputconfig.java | 0 .../AsyncFailoverInstance.java | 0 .../AsyncFailoverInstanceLRO.java | 0 .../SyncFailoverInstance.java | 0 ...overinstancerequestdataprotectionmode.java | 6 +- ...overinstancerequestdataprotectionmode.java | 6 +- .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../AsyncGetInstanceAuthString.java | 0 .../SyncGetInstanceAuthString.java | 0 ...SyncGetInstanceAuthStringInstancename.java | 0 .../SyncGetInstanceAuthStringString.java | 0 .../importinstance/AsyncImportInstance.java | 0 .../AsyncImportInstanceLRO.java | 0 .../importinstance/SyncImportInstance.java | 0 .../SyncImportInstanceStringInputconfig.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../AsyncRescheduleMaintenance.java | 0 .../AsyncRescheduleMaintenanceLRO.java | 0 .../SyncRescheduleMaintenance.java | 0 ...tenancerequestrescheduletypeTimestamp.java | 6 +- ...tenancerequestrescheduletypeTimestamp.java | 6 +- .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceFieldmaskInstance.java | 0 .../upgradeinstance/AsyncUpgradeInstance.java | 0 .../AsyncUpgradeInstanceLRO.java | 0 .../upgradeinstance/SyncUpgradeInstance.java | 0 ...SyncUpgradeInstanceInstancenameString.java | 0 .../SyncUpgradeInstanceStringString.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../cloud/redis/v1beta1/CloudRedisClient.java | 57 +- .../redis/v1beta1/CloudRedisSettings.java | 7 +- .../cloud/redis/v1beta1/gapic_metadata.json | 0 .../cloud/redis/v1beta1/package-info.java | 10 +- .../redis/v1beta1/stub/CloudRedisStub.java | 0 .../v1beta1/stub/CloudRedisStubSettings.java | 6 +- .../stub/GrpcCloudRedisCallableFactory.java | 0 .../v1beta1/stub/GrpcCloudRedisStub.java | 1 + .../HttpJsonCloudRedisCallableFactory.java | 0 .../v1beta1/stub/HttpJsonCloudRedisStub.java | 1 + .../v1beta1/CloudRedisClientHttpJsonTest.java | 0 .../redis/v1beta1/CloudRedisClientTest.java | 0 .../cloud/redis/v1beta1/MockCloudRedis.java | 0 .../redis/v1beta1/MockCloudRedisImpl.java | 0 .../cloud/redis/v1beta1/CloudRedisGrpc.java | 1136 ++--- .../v1beta1/CloudRedisServiceBetaProto.java | 615 +++ .../redis/v1beta1/CreateInstanceRequest.java | 567 +-- .../CreateInstanceRequestOrBuilder.java | 64 +- .../redis/v1beta1/DeleteInstanceRequest.java | 339 +- .../DeleteInstanceRequestOrBuilder.java | 33 + .../redis/v1beta1/ExportInstanceRequest.java | 457 +- .../ExportInstanceRequestOrBuilder.java | 47 +- .../v1beta1/FailoverInstanceRequest.java | 516 +-- .../FailoverInstanceRequestOrBuilder.java | 49 +- .../cloud/redis/v1beta1/GcsDestination.java | 301 +- .../v1beta1/GcsDestinationOrBuilder.java | 27 +- .../google/cloud/redis/v1beta1/GcsSource.java | 298 +- .../redis/v1beta1/GcsSourceOrBuilder.java | 27 +- .../v1beta1/GetInstanceAuthStringRequest.java | 342 +- ...GetInstanceAuthStringRequestOrBuilder.java | 33 + .../redis/v1beta1/GetInstanceRequest.java | 339 +- .../v1beta1/GetInstanceRequestOrBuilder.java | 33 + .../redis/v1beta1/ImportInstanceRequest.java | 457 +- .../ImportInstanceRequestOrBuilder.java | 47 +- .../cloud/redis/v1beta1/InputConfig.java | 372 +- .../redis/v1beta1/InputConfigOrBuilder.java | 26 +- .../google/cloud/redis/v1beta1/Instance.java | 3861 ++++++----------- .../redis/v1beta1/InstanceAuthString.java | 311 +- .../v1beta1/InstanceAuthStringOrBuilder.java | 29 + .../cloud/redis/v1beta1/InstanceName.java | 0 .../redis/v1beta1/InstanceOrBuilder.java | 450 +- .../redis/v1beta1/ListInstancesRequest.java | 452 +- .../ListInstancesRequestOrBuilder.java | 47 +- .../redis/v1beta1/ListInstancesResponse.java | 570 +-- .../ListInstancesResponseOrBuilder.java | 63 +- .../cloud/redis/v1beta1/LocationMetadata.java | 528 +-- .../v1beta1/LocationMetadataOrBuilder.java | 68 +- .../cloud/redis/v1beta1/LocationName.java | 0 .../redis/v1beta1/MaintenancePolicy.java | 859 ++-- .../v1beta1/MaintenancePolicyOrBuilder.java | 99 +- .../redis/v1beta1/MaintenanceSchedule.java | 697 ++- .../v1beta1/MaintenanceScheduleOrBuilder.java | 82 +- .../google/cloud/redis/v1beta1/NodeInfo.java | 377 +- .../redis/v1beta1/NodeInfoOrBuilder.java | 36 +- .../cloud/redis/v1beta1/OutputConfig.java | 370 +- .../redis/v1beta1/OutputConfigOrBuilder.java | 26 +- .../redis/v1beta1/PersistenceConfig.java | 882 ++-- .../v1beta1/PersistenceConfigOrBuilder.java | 86 +- .../v1beta1/RescheduleMaintenanceRequest.java | 664 +-- ...RescheduleMaintenanceRequestOrBuilder.java | 66 +- .../cloud/redis/v1beta1/TlsCertificate.java | 739 ++-- .../v1beta1/TlsCertificateOrBuilder.java | 79 +- .../redis/v1beta1/UpdateInstanceRequest.java | 516 +-- .../UpdateInstanceRequestOrBuilder.java | 55 +- .../redis/v1beta1/UpgradeInstanceRequest.java | 421 +- .../UpgradeInstanceRequestOrBuilder.java | 44 +- .../v1beta1/WeeklyMaintenanceWindow.java | 496 +-- .../WeeklyMaintenanceWindowOrBuilder.java | 49 +- .../cloud/redis/v1beta1/ZoneMetadata.java | 225 +- .../redis/v1beta1/ZoneMetadataOrBuilder.java | 9 + .../cloud/redis/v1beta1/cloud_redis.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameStringInstance.java | 0 ...yncCreateInstanceStringStringInstance.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 1 + .../SyncDeleteInstanceInstancename.java | 1 + .../SyncDeleteInstanceString.java | 1 + .../exportinstance/AsyncExportInstance.java | 0 .../AsyncExportInstanceLRO.java | 0 .../exportinstance/SyncExportInstance.java | 0 .../SyncExportInstanceStringOutputconfig.java | 0 .../AsyncFailoverInstance.java | 0 .../AsyncFailoverInstanceLRO.java | 0 .../SyncFailoverInstance.java | 0 ...overinstancerequestdataprotectionmode.java | 6 +- ...overinstancerequestdataprotectionmode.java | 6 +- .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../AsyncGetInstanceAuthString.java | 0 .../SyncGetInstanceAuthString.java | 0 ...SyncGetInstanceAuthStringInstancename.java | 0 .../SyncGetInstanceAuthStringString.java | 0 .../importinstance/AsyncImportInstance.java | 0 .../AsyncImportInstanceLRO.java | 0 .../importinstance/SyncImportInstance.java | 0 .../SyncImportInstanceStringInputconfig.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../AsyncRescheduleMaintenance.java | 0 .../AsyncRescheduleMaintenanceLRO.java | 0 .../SyncRescheduleMaintenance.java | 0 ...tenancerequestrescheduletypeTimestamp.java | 6 +- ...tenancerequestrescheduletypeTimestamp.java | 6 +- .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceFieldmaskInstance.java | 0 .../upgradeinstance/AsyncUpgradeInstance.java | 0 .../AsyncUpgradeInstanceLRO.java | 0 .../upgradeinstance/SyncUpgradeInstance.java | 0 ...SyncUpgradeInstanceInstancenameString.java | 0 .../SyncUpgradeInstanceStringString.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../redis/v1/CloudRedisServiceV1Proto.java | 678 --- .../v1/DeleteInstanceRequestOrBuilder.java | 58 - ...GetInstanceAuthStringRequestOrBuilder.java | 58 - .../redis/v1/GetInstanceRequestOrBuilder.java | 58 - .../redis/v1/InstanceAuthStringOrBuilder.java | 50 - .../cloud/redis/v1/ZoneMetadataOrBuilder.java | 24 - .../v1beta1/CloudRedisServiceBetaProto.java | 688 --- .../DeleteInstanceRequestOrBuilder.java | 58 - ...GetInstanceAuthStringRequestOrBuilder.java | 58 - .../v1beta1/GetInstanceRequestOrBuilder.java | 58 - .../v1beta1/InstanceAuthStringOrBuilder.java | 50 - .../redis/v1beta1/ZoneMetadataOrBuilder.java | 24 - 264 files changed, 14994 insertions(+), 25318 deletions(-) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java (97%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java (98%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json (100%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/package-info.java (82%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java (100%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java (99%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java (100%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java (99%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java (100%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java (99%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java (100%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java (100%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java (100%) rename {google-cloud-redis => owl-bot-staging/v1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java (100%) rename {grpc-google-cloud-redis-v1 => owl-bot-staging/v1/grpc-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java (53%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java (70%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java (66%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java (66%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java (56%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java (65%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java (52%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsDestination.java (69%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java (53%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsSource.java (68%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java (50%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java (66%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java (56%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InputConfig.java (69%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java (61%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/Instance.java (71%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InstanceName.java (100%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java (77%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java (71%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java (63%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java (80%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java (83%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java (61%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java (54%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/LocationName.java (100%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java (66%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java (66%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java (67%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java (64%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/NodeInfo.java (70%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java (58%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java (71%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java (72%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OutputConfig.java (70%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java (62%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java (66%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java (60%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java (69%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java (72%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java (71%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java (72%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java (68%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java (55%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java (72%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java (72%) rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java rename {proto-google-cloud-redis-v1 => owl-bot-staging/v1/proto-google-cloud-redis-v1}/src/main/proto/google/cloud/redis/v1/cloud_redis.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java (97%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java (98%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/package-info.java (82%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java (99%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java (99%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java (99%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java (100%) rename {google-cloud-redis => owl-bot-staging/v1beta1/google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java (100%) rename {grpc-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java (52%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java (67%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java (61%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java (67%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java (56%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java (66%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java (52%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java (71%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java (53%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java (70%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java (50%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java (67%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java (56%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java (70%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java (62%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/Instance.java (70%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java (69%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java (100%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java (76%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java (71%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java (63%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java (80%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java (83%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java (61%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java (53%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java (100%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java (66%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java (65%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java (67%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java (64%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java (71%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java (58%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java (71%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java (63%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java (65%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java (61%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java (67%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java (60%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java (69%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java (72%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java (68%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java (66%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java (69%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java (55%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java (73%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java (72%) rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java rename {proto-google-cloud-redis-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1}/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java (97%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java (97%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java (97%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java (87%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java (87%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java (87%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java (87%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java (100%) delete mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java delete mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java delete mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java delete mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java similarity index 97% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java index 59c404bc..1731ad41 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java +++ b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; @@ -49,17 +50,17 @@ * defines the following resource model for managing Redis instances: * * * *

Note that location_id must be referring to a GCP `region`; for example: * *

* *

This class provides the ability to make remote calls to the backing service through method @@ -81,13 +82,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. *
* @@ -206,6 +207,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ + @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } @@ -218,7 +220,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

The location should have the following format: * *

* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -257,7 +259,7 @@ public final ListInstancesPagedResponse listInstances(LocationName parent) { *

The location should have the following format: * *

* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -293,7 +295,7 @@ public final ListInstancesPagedResponse listInstances(String parent) { *

The location should have the following format: * *

* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -332,7 +334,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -372,7 +374,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -651,11 +653,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: *

* * @param instance Required. A Redis [Instance] resource @@ -705,11 +707,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: * * * @param instance Required. A Redis [Instance] resource @@ -1838,10 +1840,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1891,10 +1890,7 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java similarity index 98% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java index 35cb5cf7..ce62b4a0 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java +++ b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java @@ -29,6 +29,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.redis.v1.stub.CloudRedisStubSettings; @@ -45,9 +46,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java similarity index 82% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java index 9fdd69e4..78fb55fa 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java @@ -29,17 +29,17 @@ * defines the following resource model for managing Redis instances: * *

    - *
  • The service works with a collection of cloud projects, named: `/projects/*` - *
  • Each project has a collection of available locations, named: `/locations/*` - *
  • Each location has a collection of Redis instances, named: `/instances/*` - *
  • As such, Redis instances are resources of the form: + *
  • The service works with a collection of cloud projects, named: `/projects/*` + *
  • Each project has a collection of available locations, named: `/locations/*` + *
  • Each location has a collection of Redis instances, named: `/instances/*` + *
  • As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

Note that location_id must be referring to a GCP `region`; for example: * *

    - *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` *
* *

Sample for CloudRedisClient: diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java similarity index 99% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java index 7a2e730d..ca056162 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java @@ -80,9 +80,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java similarity index 99% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java index 528e750a..24d98ea2 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java +++ b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java @@ -47,6 +47,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java similarity index 99% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java rename to owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java index d958da7d..298ca1d1 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java +++ b/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java b/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java rename to owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java b/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java rename to owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java b/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java rename to owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java diff --git a/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java similarity index 53% rename from grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java index 52740946..9ad60c5e 100644 --- a/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.redis.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Configures and manages Cloud Memorystore for Redis instances
  * Google Cloud Memorystore for Redis v1
@@ -46,519 +29,392 @@ private CloudRedisGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.redis.v1.CloudRedis";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.ListInstancesRequest,
-          com.google.cloud.redis.v1.ListInstancesResponse>
-      getListInstancesMethod;
+  private static volatile io.grpc.MethodDescriptor getListInstancesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListInstances",
       requestType = com.google.cloud.redis.v1.ListInstancesRequest.class,
       responseType = com.google.cloud.redis.v1.ListInstancesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.ListInstancesRequest,
-          com.google.cloud.redis.v1.ListInstancesResponse>
-      getListInstancesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.ListInstancesRequest,
-            com.google.cloud.redis.v1.ListInstancesResponse>
-        getListInstancesMethod;
+  public static io.grpc.MethodDescriptor getListInstancesMethod() {
+    io.grpc.MethodDescriptor getListInstancesMethod;
     if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
-          CloudRedisGrpc.getListInstancesMethod =
-              getListInstancesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.ListInstancesRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
-                      .build();
+          CloudRedisGrpc.getListInstancesMethod = getListInstancesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.ListInstancesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
+              .build();
         }
       }
     }
     return getListInstancesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.GetInstanceRequest, com.google.cloud.redis.v1.Instance>
-      getGetInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getGetInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstance",
       requestType = com.google.cloud.redis.v1.GetInstanceRequest.class,
       responseType = com.google.cloud.redis.v1.Instance.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.GetInstanceRequest, com.google.cloud.redis.v1.Instance>
-      getGetInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.GetInstanceRequest, com.google.cloud.redis.v1.Instance>
-        getGetInstanceMethod;
+  public static io.grpc.MethodDescriptor getGetInstanceMethod() {
+    io.grpc.MethodDescriptor getGetInstanceMethod;
     if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
-          CloudRedisGrpc.getGetInstanceMethod =
-              getGetInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.GetInstanceRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.Instance.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
-                      .build();
+          CloudRedisGrpc.getGetInstanceMethod = getGetInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.GetInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.Instance.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
+              .build();
         }
       }
     }
     return getGetInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.GetInstanceAuthStringRequest,
-          com.google.cloud.redis.v1.InstanceAuthString>
-      getGetInstanceAuthStringMethod;
+  private static volatile io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstanceAuthString",
       requestType = com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class,
       responseType = com.google.cloud.redis.v1.InstanceAuthString.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.GetInstanceAuthStringRequest,
-          com.google.cloud.redis.v1.InstanceAuthString>
-      getGetInstanceAuthStringMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.GetInstanceAuthStringRequest,
-            com.google.cloud.redis.v1.InstanceAuthString>
-        getGetInstanceAuthStringMethod;
+  public static io.grpc.MethodDescriptor getGetInstanceAuthStringMethod() {
+    io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
     if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod)
-            == null) {
-          CloudRedisGrpc.getGetInstanceAuthStringMethod =
-              getGetInstanceAuthStringMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.GetInstanceAuthStringRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.InstanceAuthString.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
-                      .build();
+        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
+          CloudRedisGrpc.getGetInstanceAuthStringMethod = getGetInstanceAuthStringMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.GetInstanceAuthStringRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.InstanceAuthString.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
+              .build();
         }
       }
     }
     return getGetInstanceAuthStringMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.CreateInstanceRequest, com.google.longrunning.Operation>
-      getCreateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateInstance",
       requestType = com.google.cloud.redis.v1.CreateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.CreateInstanceRequest, com.google.longrunning.Operation>
-      getCreateInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.CreateInstanceRequest, com.google.longrunning.Operation>
-        getCreateInstanceMethod;
+  public static io.grpc.MethodDescriptor getCreateInstanceMethod() {
+    io.grpc.MethodDescriptor getCreateInstanceMethod;
     if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
-          CloudRedisGrpc.getCreateInstanceMethod =
-              getCreateInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
-                      .build();
+          CloudRedisGrpc.getCreateInstanceMethod = getCreateInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
+              .build();
         }
       }
     }
     return getCreateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.UpdateInstanceRequest, com.google.longrunning.Operation>
-      getUpdateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateInstance",
       requestType = com.google.cloud.redis.v1.UpdateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.UpdateInstanceRequest, com.google.longrunning.Operation>
-      getUpdateInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.UpdateInstanceRequest, com.google.longrunning.Operation>
-        getUpdateInstanceMethod;
+  public static io.grpc.MethodDescriptor getUpdateInstanceMethod() {
+    io.grpc.MethodDescriptor getUpdateInstanceMethod;
     if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
-          CloudRedisGrpc.getUpdateInstanceMethod =
-              getUpdateInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
-                      .build();
+          CloudRedisGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
+              .build();
         }
       }
     }
     return getUpdateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.UpgradeInstanceRequest, com.google.longrunning.Operation>
-      getUpgradeInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getUpgradeInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance",
       requestType = com.google.cloud.redis.v1.UpgradeInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.UpgradeInstanceRequest, com.google.longrunning.Operation>
-      getUpgradeInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.UpgradeInstanceRequest, com.google.longrunning.Operation>
-        getUpgradeInstanceMethod;
+  public static io.grpc.MethodDescriptor getUpgradeInstanceMethod() {
+    io.grpc.MethodDescriptor getUpgradeInstanceMethod;
     if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
-          CloudRedisGrpc.getUpgradeInstanceMethod =
-              getUpgradeInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.UpgradeInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
-                      .build();
+          CloudRedisGrpc.getUpgradeInstanceMethod = getUpgradeInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.UpgradeInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
+              .build();
         }
       }
     }
     return getUpgradeInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation>
-      getImportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getImportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportInstance",
       requestType = com.google.cloud.redis.v1.ImportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation>
-      getImportInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation>
-        getImportInstanceMethod;
+  public static io.grpc.MethodDescriptor getImportInstanceMethod() {
+    io.grpc.MethodDescriptor getImportInstanceMethod;
     if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
-          CloudRedisGrpc.getImportInstanceMethod =
-              getImportInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
-                      .build();
+          CloudRedisGrpc.getImportInstanceMethod = getImportInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
+              .build();
         }
       }
     }
     return getImportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation>
-      getExportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getExportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ExportInstance",
       requestType = com.google.cloud.redis.v1.ExportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation>
-      getExportInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation>
-        getExportInstanceMethod;
+  public static io.grpc.MethodDescriptor getExportInstanceMethod() {
+    io.grpc.MethodDescriptor getExportInstanceMethod;
     if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
-          CloudRedisGrpc.getExportInstanceMethod =
-              getExportInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
-                      .build();
+          CloudRedisGrpc.getExportInstanceMethod = getExportInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
+              .build();
         }
       }
     }
     return getExportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.FailoverInstanceRequest, com.google.longrunning.Operation>
-      getFailoverInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getFailoverInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "FailoverInstance",
       requestType = com.google.cloud.redis.v1.FailoverInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.FailoverInstanceRequest, com.google.longrunning.Operation>
-      getFailoverInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.FailoverInstanceRequest, com.google.longrunning.Operation>
-        getFailoverInstanceMethod;
+  public static io.grpc.MethodDescriptor getFailoverInstanceMethod() {
+    io.grpc.MethodDescriptor getFailoverInstanceMethod;
     if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
-          CloudRedisGrpc.getFailoverInstanceMethod =
-              getFailoverInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.FailoverInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
-                      .build();
+          CloudRedisGrpc.getFailoverInstanceMethod = getFailoverInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.FailoverInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
+              .build();
         }
       }
     }
     return getFailoverInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.DeleteInstanceRequest, com.google.longrunning.Operation>
-      getDeleteInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteInstance",
       requestType = com.google.cloud.redis.v1.DeleteInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.DeleteInstanceRequest, com.google.longrunning.Operation>
-      getDeleteInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.DeleteInstanceRequest, com.google.longrunning.Operation>
-        getDeleteInstanceMethod;
+  public static io.grpc.MethodDescriptor getDeleteInstanceMethod() {
+    io.grpc.MethodDescriptor getDeleteInstanceMethod;
     if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
-          CloudRedisGrpc.getDeleteInstanceMethod =
-              getDeleteInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
-                      .build();
+          CloudRedisGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
+              .build();
         }
       }
     }
     return getDeleteInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.RescheduleMaintenanceRequest, com.google.longrunning.Operation>
-      getRescheduleMaintenanceMethod;
+  private static volatile io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RescheduleMaintenance",
       requestType = com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1.RescheduleMaintenanceRequest, com.google.longrunning.Operation>
-      getRescheduleMaintenanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1.RescheduleMaintenanceRequest,
-            com.google.longrunning.Operation>
-        getRescheduleMaintenanceMethod;
+  public static io.grpc.MethodDescriptor getRescheduleMaintenanceMethod() {
+    io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
     if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod)
-            == null) {
-          CloudRedisGrpc.getRescheduleMaintenanceMethod =
-              getRescheduleMaintenanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1.RescheduleMaintenanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
-                      .build();
+        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
+          CloudRedisGrpc.getRescheduleMaintenanceMethod = getRescheduleMaintenanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
+              .build();
         }
       }
     }
     return getRescheduleMaintenanceMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static CloudRedisStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new CloudRedisStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new CloudRedisStub(channel, callOptions);
+        }
+      };
     return CloudRedisStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static CloudRedisBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static CloudRedisBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public CloudRedisBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new CloudRedisBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public CloudRedisBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new CloudRedisBlockingStub(channel, callOptions);
+        }
+      };
     return CloudRedisBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static CloudRedisFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static CloudRedisFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public CloudRedisFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new CloudRedisFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public CloudRedisFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new CloudRedisFutureStub(channel, callOptions);
+        }
+      };
     return CloudRedisFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -574,11 +430,9 @@ public CloudRedisFutureStub newStub(
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public abstract static class CloudRedisImplBase implements io.grpc.BindableService { + public static abstract class CloudRedisImplBase implements io.grpc.BindableService { /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -588,48 +442,34 @@ public abstract static class CloudRedisImplBase implements io.grpc.BindableServi
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances( - com.google.cloud.redis.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); + public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance( - com.google.cloud.redis.v1.GetInstanceRequest request, + public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceAuthStringMethod(), responseObserver); + public void getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceAuthStringMethod(), responseObserver); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -642,16 +482,12 @@ public void getInstanceAuthString(
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance( - com.google.cloud.redis.v1.CreateInstanceRequest request, + public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -659,31 +495,23 @@ public void createInstance(
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance( - com.google.cloud.redis.v1.UpdateInstanceRequest request, + public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance( - com.google.cloud.redis.v1.UpgradeInstanceRequest request, + public void upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpgradeInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceMethod(), responseObserver); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -693,16 +521,12 @@ public void upgradeInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance( - com.google.cloud.redis.v1.ImportInstanceRequest request, + public void importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportInstanceMethod(), responseObserver); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -710,136 +534,128 @@ public void importInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance( - com.google.cloud.redis.v1.ExportInstanceRequest request, + public void exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportInstanceMethod(), responseObserver); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance( - com.google.cloud.redis.v1.FailoverInstanceRequest request, + public void failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFailoverInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFailoverInstanceMethod(), responseObserver); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance( - com.google.cloud.redis.v1.DeleteInstanceRequest request, + public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRescheduleMaintenanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRescheduleMaintenanceMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ListInstancesRequest, - com.google.cloud.redis.v1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.ListInstancesRequest, + com.google.cloud.redis.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.GetInstanceRequest, - com.google.cloud.redis.v1.Instance>(this, METHODID_GET_INSTANCE))) + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.GetInstanceRequest, + com.google.cloud.redis.v1.Instance>( + this, METHODID_GET_INSTANCE))) .addMethod( - getGetInstanceAuthStringMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.GetInstanceAuthStringRequest, - com.google.cloud.redis.v1.InstanceAuthString>( - this, METHODID_GET_INSTANCE_AUTH_STRING))) + getGetInstanceAuthStringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.GetInstanceAuthStringRequest, + com.google.cloud.redis.v1.InstanceAuthString>( + this, METHODID_GET_INSTANCE_AUTH_STRING))) .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) .addMethod( - getUpgradeInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.UpgradeInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE))) + getUpgradeInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.UpgradeInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPGRADE_INSTANCE))) .addMethod( - getImportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ImportInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_INSTANCE))) + getImportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.ImportInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_INSTANCE))) .addMethod( - getExportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ExportInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_INSTANCE))) + getExportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.ExportInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_INSTANCE))) .addMethod( - getFailoverInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.FailoverInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_FAILOVER_INSTANCE))) + getFailoverInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.FailoverInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_FAILOVER_INSTANCE))) .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) .addMethod( - getRescheduleMaintenanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.RescheduleMaintenanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESCHEDULE_MAINTENANCE))) + getRescheduleMaintenanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.RescheduleMaintenanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESCHEDULE_MAINTENANCE))) .build(); } } /** - * - * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -856,18 +672,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class CloudRedisStub extends io.grpc.stub.AbstractAsyncStub { - private CloudRedisStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudRedisStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisStub(channel, callOptions); } /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -877,54 +693,37 @@ protected CloudRedisStub build(io.grpc.Channel channel, io.grpc.CallOptions call
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances( - com.google.cloud.redis.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance( - com.google.cloud.redis.v1.GetInstanceRequest request, + public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -937,18 +736,13 @@ public void getInstanceAuthString(
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance( - com.google.cloud.redis.v1.CreateInstanceRequest request, + public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -956,35 +750,25 @@ public void createInstance(
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance( - com.google.cloud.redis.v1.UpdateInstanceRequest request, + public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance( - com.google.cloud.redis.v1.UpgradeInstanceRequest request, + public void upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -994,18 +778,13 @@ public void upgradeInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance( - com.google.cloud.redis.v1.ImportInstanceRequest request, + public void importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1013,70 +792,50 @@ public void importInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance( - com.google.cloud.redis.v1.ExportInstanceRequest request, + public void exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance( - com.google.cloud.redis.v1.FailoverInstanceRequest request, + public void failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance( - com.google.cloud.redis.v1.DeleteInstanceRequest request, + public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -1092,9 +851,9 @@ public void rescheduleMaintenance(
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudRedisBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudRedisBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1105,8 +864,6 @@ protected CloudRedisBlockingStub build( } /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -1116,43 +873,34 @@ protected CloudRedisBlockingStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.cloud.redis.v1.ListInstancesResponse listInstances( - com.google.cloud.redis.v1.ListInstancesRequest request) { + public com.google.cloud.redis.v1.ListInstancesResponse listInstances(com.google.cloud.redis.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.cloud.redis.v1.Instance getInstance( - com.google.cloud.redis.v1.GetInstanceRequest request) { + public com.google.cloud.redis.v1.Instance getInstance(com.google.cloud.redis.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { + public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceAuthStringMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -1165,15 +913,12 @@ public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString(
      * is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation createInstance( - com.google.cloud.redis.v1.CreateInstanceRequest request) { + public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -1181,29 +926,23 @@ public com.google.longrunning.Operation createInstance(
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.redis.v1.UpdateInstanceRequest request) { + public com.google.longrunning.Operation updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.redis.v1.UpgradeInstanceRequest request) { + public com.google.longrunning.Operation upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -1213,15 +952,12 @@ public com.google.longrunning.Operation upgradeInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation importInstance( - com.google.cloud.redis.v1.ImportInstanceRequest request) { + public com.google.longrunning.Operation importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1229,58 +965,46 @@ public com.google.longrunning.Operation importInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation exportInstance( - com.google.cloud.redis.v1.ExportInstanceRequest request) { + public com.google.longrunning.Operation exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.longrunning.Operation failoverInstance( - com.google.cloud.redis.v1.FailoverInstanceRequest request) { + public com.google.longrunning.Operation failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.longrunning.Operation deleteInstance( - com.google.cloud.redis.v1.DeleteInstanceRequest request) { + public com.google.longrunning.Operation deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.longrunning.Operation rescheduleMaintenance( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { + public com.google.longrunning.Operation rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } /** - * - * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -1296,20 +1020,19 @@ public com.google.longrunning.Operation rescheduleMaintenance(
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudRedisFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudRedisFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisFutureStub(channel, callOptions); } /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -1319,45 +1042,37 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.redis.v1.ListInstancesResponse> - listInstances(com.google.cloud.redis.v1.ListInstancesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.redis.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getInstance(com.google.cloud.redis.v1.GetInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.redis.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.redis.v1.InstanceAuthString> - getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { + public com.google.common.util.concurrent.ListenableFuture getInstanceAuthString( + com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -1370,15 +1085,13 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture createInstance( + com.google.cloud.redis.v1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -1386,29 +1099,25 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.redis.v1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture upgradeInstance( + com.google.cloud.redis.v1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -1418,15 +1127,13 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture importInstance( + com.google.cloud.redis.v1.ImportInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1434,50 +1141,44 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture exportInstance( + com.google.cloud.redis.v1.ExportInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture failoverInstance( + com.google.cloud.redis.v1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteInstance( + com.google.cloud.redis.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture rescheduleMaintenance( + com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request); } @@ -1495,11 +1196,11 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_DELETE_INSTANCE = 9; private static final int METHODID_RESCHEDULE_MAINTENANCE = 10; - 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 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 CloudRedisImplBase serviceImpl; private final int methodId; @@ -1513,60 +1214,47 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.redis.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listInstances((com.google.cloud.redis.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.redis.v1.GetInstanceRequest) request, + serviceImpl.getInstance((com.google.cloud.redis.v1.GetInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTANCE_AUTH_STRING: - serviceImpl.getInstanceAuthString( - (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getInstanceAuthString((com.google.cloud.redis.v1.GetInstanceAuthStringRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.cloud.redis.v1.CreateInstanceRequest) request, + serviceImpl.createInstance((com.google.cloud.redis.v1.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.redis.v1.UpdateInstanceRequest) request, + serviceImpl.updateInstance((com.google.cloud.redis.v1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPGRADE_INSTANCE: - serviceImpl.upgradeInstance( - (com.google.cloud.redis.v1.UpgradeInstanceRequest) request, + serviceImpl.upgradeInstance((com.google.cloud.redis.v1.UpgradeInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_INSTANCE: - serviceImpl.importInstance( - (com.google.cloud.redis.v1.ImportInstanceRequest) request, + serviceImpl.importInstance((com.google.cloud.redis.v1.ImportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_INSTANCE: - serviceImpl.exportInstance( - (com.google.cloud.redis.v1.ExportInstanceRequest) request, + serviceImpl.exportInstance((com.google.cloud.redis.v1.ExportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FAILOVER_INSTANCE: - serviceImpl.failoverInstance( - (com.google.cloud.redis.v1.FailoverInstanceRequest) request, + serviceImpl.failoverInstance((com.google.cloud.redis.v1.FailoverInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.redis.v1.DeleteInstanceRequest) request, + serviceImpl.deleteInstance((com.google.cloud.redis.v1.DeleteInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESCHEDULE_MAINTENANCE: - serviceImpl.rescheduleMaintenance( - (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) request, + serviceImpl.rescheduleMaintenance((com.google.cloud.redis.v1.RescheduleMaintenanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1585,9 +1273,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class CloudRedisBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class CloudRedisBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudRedisBaseDescriptorSupplier() {} @java.lang.Override @@ -1629,22 +1316,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CloudRedisGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getGetInstanceAuthStringMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpgradeInstanceMethod()) - .addMethod(getImportInstanceMethod()) - .addMethod(getExportInstanceMethod()) - .addMethod(getFailoverInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getRescheduleMaintenanceMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getGetInstanceAuthStringMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpgradeInstanceMethod()) + .addMethod(getImportInstanceMethod()) + .addMethod(getExportInstanceMethod()) + .addMethod(getFailoverInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getRescheduleMaintenanceMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java new file mode 100644 index 00000000..e311004c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java @@ -0,0 +1,602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public final class CloudRedisServiceV1Proto { + private CloudRedisServiceV1Proto() {} + 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_redis_v1_NodeInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_TlsCertificate_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/redis/v1/cloud_redis.prot" + + "o\022\025google.cloud.redis.v1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032#google/longrunning/" + + "operations.proto\032\036google/protobuf/durati" + + "on.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\032\033goo" + + "gle/type/dayofweek.proto\032\033google/type/ti" + + "meofday.proto\".\n\010NodeInfo\022\017\n\002id\030\001 \001(\tB\003\340" + + "A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\236\020\n\010Instance\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022;\n\006l" + + "abels\030\003 \003(\0132+.google.cloud.redis.v1.Inst" + + "ance.LabelsEntry\022\030\n\013location_id\030\004 \001(\tB\003\340" + + "A\001\022$\n\027alternative_location_id\030\005 \001(\tB\003\340A\001" + + "\022\032\n\rredis_version\030\007 \001(\tB\003\340A\001\022\036\n\021reserved" + + "_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022secondary_ip_ran" + + "ge\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001(\tB\003\340A\003\022\021\n\004port" + + "\030\013 \001(\005B\003\340A\003\022 \n\023current_location_id\030\014 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0229\n\005state\030\016 \001(\0162%.goo" + + "gle.cloud.redis.v1.Instance.StateB\003\340A\003\022\033" + + "\n\016status_message\030\017 \001(\tB\003\340A\003\022M\n\rredis_con" + + "figs\030\020 \003(\01321.google.cloud.redis.v1.Insta" + + "nce.RedisConfigsEntryB\003\340A\001\0227\n\004tier\030\021 \001(\016" + + "2$.google.cloud.redis.v1.Instance.TierB\003" + + "\340A\002\022\033\n\016memory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022auth" + + "orized_network\030\024 \001(\tB\003\340A\001\022%\n\030persistence" + + "_iam_identity\030\025 \001(\tB\003\340A\003\022F\n\014connect_mode" + + "\030\026 \001(\0162+.google.cloud.redis.v1.Instance." + + "ConnectModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003" + + "\340A\001\022C\n\017server_ca_certs\030\031 \003(\0132%.google.cl" + + "oud.redis.v1.TlsCertificateB\003\340A\003\022[\n\027tran" + + "sit_encryption_mode\030\032 \001(\01625.google.cloud" + + ".redis.v1.Instance.TransitEncryptionMode" + + "B\003\340A\001\022I\n\022maintenance_policy\030\033 \001(\0132(.goog" + + "le.cloud.redis.v1.MaintenancePolicyB\003\340A\001" + + "\022M\n\024maintenance_schedule\030\034 \001(\0132*.google." + + "cloud.redis.v1.MaintenanceScheduleB\003\340A\003\022" + + "\032\n\rreplica_count\030\037 \001(\005B\003\340A\001\0223\n\005nodes\030 \003" + + "(\0132\037.google.cloud.redis.v1.NodeInfoB\003\340A\003" + + "\022\032\n\rread_endpoint\030! \001(\tB\003\340A\003\022\037\n\022read_end" + + "point_port\030\" \001(\005B\003\340A\003\022Q\n\022read_replicas_m" + + "ode\030# \001(\01620.google.cloud.redis.v1.Instan" + + "ce.ReadReplicasModeB\003\340A\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021Redis" + + "ConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\224\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010" + + "DELETING\020\004\022\r\n\tREPAIRING\020\005\022\017\n\013MAINTENANCE" + + "\020\006\022\r\n\tIMPORTING\020\010\022\020\n\014FAILING_OVER\020\t\"8\n\004T" + + "ier\022\024\n\020TIER_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013" + + "STANDARD_HA\020\003\"[\n\013ConnectMode\022\034\n\030CONNECT_" + + "MODE_UNSPECIFIED\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032" + + "\n\026PRIVATE_SERVICE_ACCESS\020\002\"i\n\025TransitEnc" + + "ryptionMode\022\'\n#TRANSIT_ENCRYPTION_MODE_U" + + "NSPECIFIED\020\000\022\031\n\025SERVER_AUTHENTICATION\020\001\022" + + "\014\n\010DISABLED\020\002\"m\n\020ReadReplicasMode\022\"\n\036REA" + + "D_REPLICAS_MODE_UNSPECIFIED\020\000\022\032\n\026READ_RE" + + "PLICAS_DISABLED\020\001\022\031\n\025READ_REPLICAS_ENABL" + + "ED\020\002:`\352A]\n\035redis.googleapis.com/Instance" + + "\022\202\323\344\223\002/\022-/v1/{parent=projects/*/loca" + + "tions/*}/instances\332A\006parent\022\227\001\n\013GetInsta" + + "nce\022).google.cloud.redis.v1.GetInstanceR" + + "equest\032\037.google.cloud.redis.v1.Instance\"" + + "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/" + + "*/instances/*}\332A\004name\022\300\001\n\025GetInstanceAut" + + "hString\0223.google.cloud.redis.v1.GetInsta" + + "nceAuthStringRequest\032).google.cloud.redi" + + "s.v1.InstanceAuthString\"G\202\323\344\223\002:\0228/v1/{na" + + "me=projects/*/locations/*/instances/*}/a" + + "uthString\332A\004name\022\211\002\n\016CreateInstance\022,.go" + + "ogle.cloud.redis.v1.CreateInstanceReques" + + "t\032\035.google.longrunning.Operation\"\251\001\202\323\344\223\002" + + "9\"-/v1/{parent=projects/*/locations/*}/i" + + "nstances:\010instance\332A\033parent,instance_id," + + "instance\312AI\n\036google.cloud.redis.v1.Insta" + + "nce\022\'google.cloud.redis.v1.OperationMeta" + + "data\022\213\002\n\016UpdateInstance\022,.google.cloud.r" + + "edis.v1.UpdateInstanceRequest\032\035.google.l" + + "ongrunning.Operation\"\253\001\202\323\344\223\002B26/v1/{inst" + + "ance.name=projects/*/locations/*/instanc" + + "es/*}:\010instance\332A\024update_mask,instance\312A" + + "I\n\036google.cloud.redis.v1.Instance\022\'googl" + + "e.cloud.redis.v1.OperationMetadata\022\203\002\n\017U" + + "pgradeInstance\022-.google.cloud.redis.v1.U" + + "pgradeInstanceRequest\032\035.google.longrunni" + + "ng.Operation\"\241\001\202\323\344\223\002:\"5/v1/{name=project" + + "s/*/locations/*/instances/*}:upgrade:\001*\332" + + "A\022name,redis_version\312AI\n\036google.cloud.re" + + "dis.v1.Instance\022\'google.cloud.redis.v1.O" + + "perationMetadata\022\377\001\n\016ImportInstance\022,.go" + + "ogle.cloud.redis.v1.ImportInstanceReques" + + "t\032\035.google.longrunning.Operation\"\237\001\202\323\344\223\002" + + "9\"4/v1/{name=projects/*/locations/*/inst" + + "ances/*}:import:\001*\332A\021name,input_config\312A" + + "I\n\036google.cloud.redis.v1.Instance\022\'googl" + + "e.cloud.redis.v1.OperationMetadata\022\200\002\n\016E" + + "xportInstance\022,.google.cloud.redis.v1.Ex" + + "portInstanceRequest\032\035.google.longrunning" + + ".Operation\"\240\001\202\323\344\223\0029\"4/v1/{name=projects/" + + "*/locations/*/instances/*}:export:\001*\332A\022n" + + "ame,output_config\312AI\n\036google.cloud.redis" + + ".v1.Instance\022\'google.cloud.redis.v1.Oper" + + "ationMetadata\022\215\002\n\020FailoverInstance\022..goo" + + "gle.cloud.redis.v1.FailoverInstanceReque" + + "st\032\035.google.longrunning.Operation\"\251\001\202\323\344\223" + + "\002;\"6/v1/{name=projects/*/locations/*/ins" + + "tances/*}:failover:\001*\332A\031name,data_protec" + + "tion_mode\312AI\n\036google.cloud.redis.v1.Inst" + + "ance\022\'google.cloud.redis.v1.OperationMet" + + "adata\022\336\001\n\016DeleteInstance\022,.google.cloud." + + "redis.v1.DeleteInstanceRequest\032\035.google." + + "longrunning.Operation\"\177\202\323\344\223\002/*-/v1/{name" + + "=projects/*/locations/*/instances/*}\332A\004n" + + "ame\312A@\n\025google.protobuf.Empty\022\'google.cl" + + "oud.redis.v1.OperationMetadata\022\257\002\n\025Resch" + + "eduleMaintenance\0223.google.cloud.redis.v1" + + ".RescheduleMaintenanceRequest\032\035.google.l" + + "ongrunning.Operation\"\301\001\202\323\344\223\002H\"C/v1/{name" + + "=projects/*/locations/*/instances/*}:res" + + "cheduleMaintenance:\001*\332A$name, reschedule" + + "_type, schedule_time\312AI\n\036google.cloud.re" + + "dis.v1.Instance\022\'google.cloud.redis.v1.O" + + "perationMetadata\032H\312A\024redis.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformBs\n\031com.google.cloud.redis.v1B" + + "\030CloudRedisServiceV1ProtoP\001Z:google.gola" + + "ng.org/genproto/googleapis/cloud/redis/v" + + "1;redisb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }); + internal_static_google_cloud_redis_v1_NodeInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_NodeInfo_descriptor, + new java.lang.String[] { "Id", "Zone", }); + internal_static_google_cloud_redis_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Labels", "LocationId", "AlternativeLocationId", "RedisVersion", "ReservedIpRange", "SecondaryIpRange", "Host", "Port", "CurrentLocationId", "CreateTime", "State", "StatusMessage", "RedisConfigs", "Tier", "MemorySizeGb", "AuthorizedNetwork", "PersistenceIamIdentity", "ConnectMode", "AuthEnabled", "ServerCaCerts", "TransitEncryptionMode", "MaintenancePolicy", "MaintenanceSchedule", "ReplicaCount", "Nodes", "ReadEndpoint", "ReadEndpointPort", "ReadReplicasMode", }); + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor, + new java.lang.String[] { "Name", "RescheduleType", "ScheduleTime", }); + internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow", }); + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor, + new java.lang.String[] { "Day", "StartTime", "Duration", }); + internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime", }); + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor, + new java.lang.String[] { "AuthString", }); + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor, + new java.lang.String[] { "Name", "RedisVersion", }); + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GcsSource_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_redis_v1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_InputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor, + new java.lang.String[] { "Name", "InputConfig", }); + internal_static_google_cloud_redis_v1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_redis_v1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor, + new java.lang.String[] { "Name", "OutputConfig", }); + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor, + new java.lang.String[] { "Name", "DataProtectionMode", }); + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor, + new java.lang.String[] { "AvailableZones", }); + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor = + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_redis_v1_TlsCertificate_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_TlsCertificate_descriptor, + new java.lang.String[] { "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java similarity index 70% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java index 4a74d878..f3b3327c 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -44,15 +26,16 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private CreateInstanceRequest( 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(); - instanceId_ = s; - break; + instanceId_ = s; + break; + } + case 26: { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); } - case 26: - { - com.google.cloud.redis.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - - break; + instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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) { @@ -114,43 +93,36 @@ private CreateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.CreateInstanceRequest.class, - com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.CreateInstanceRequest.class, com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 @@ -159,33 +131,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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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 INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** - * - * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -209,7 +177,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -218,15 +185,14 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -238,15 +204,16 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -257,15 +224,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.redis.v1.Instance instance_; /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -273,15 +236,11 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override @@ -289,14 +248,11 @@ public com.google.cloud.redis.v1.Instance getInstance() { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -304,7 +260,6 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +298,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,19 +309,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.redis.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.CreateInstanceRequest other = - (com.google.cloud.redis.v1.CreateInstanceRequest) obj; + com.google.cloud.redis.v1.CreateInstanceRequest other = (com.google.cloud.redis.v1.CreateInstanceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -390,127 +349,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.CreateInstanceRequest 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.redis.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.CreateInstanceRequest) com.google.cloud.redis.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.CreateInstanceRequest.class, - com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.CreateInstanceRequest.class, com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.CreateInstanceRequest.newBuilder() @@ -518,15 +468,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(); @@ -544,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -565,8 +516,7 @@ public com.google.cloud.redis.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.redis.v1.CreateInstanceRequest result = - new com.google.cloud.redis.v1.CreateInstanceRequest(this); + com.google.cloud.redis.v1.CreateInstanceRequest result = new com.google.cloud.redis.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -582,39 +532,38 @@ public com.google.cloud.redis.v1.CreateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -622,8 +571,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -666,24 +614,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.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; @@ -692,25 +636,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.google.api.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 { @@ -718,73 +659,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -792,8 +720,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -805,13 +731,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -820,8 +746,6 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -833,14 +757,15 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -848,8 +773,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -861,22 +784,20 @@ public com.google.protobuf.ByteString getInstanceIdBytes() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -888,18 +809,15 @@ public Builder setInstanceId(java.lang.String value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -911,16 +829,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -928,55 +846,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.redis.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, - com.google.cloud.redis.v1.Instance.Builder, - com.google.cloud.redis.v1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.redis.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.redis.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { @@ -992,16 +894,14 @@ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.redis.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.redis.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -1012,22 +912,17 @@ public Builder setInstance(com.google.cloud.redis.v1.Instance.Builder builderFor return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -1039,14 +934,11 @@ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -1060,68 +952,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.redis.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, - com.google.cloud.redis.v1.Instance.Builder, - com.google.cloud.redis.v1.InstanceOrBuilder> + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, - com.google.cloud.redis.v1.Instance.Builder, - com.google.cloud.redis.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1131,12 +1010,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.CreateInstanceRequest) private static final com.google.cloud.redis.v1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.CreateInstanceRequest(); } @@ -1145,16 +1024,16 @@ public static com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1169,4 +1048,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java index 27069c04..5ed86192 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java @@ -1,64 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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 logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -70,13 +43,10 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -88,46 +58,35 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.redis.v1.Instance getInstance(); /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java index 7c77347a..40b766ff 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteInstanceRequest( 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) { @@ -91,43 +73,36 @@ private DeleteInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.DeleteInstanceRequest.class, - com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1.DeleteInstanceRequest.class, com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -136,33 +111,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.DeleteInstanceRequest other = - (com.google.cloud.redis.v1.DeleteInstanceRequest) obj; + com.google.cloud.redis.v1.DeleteInstanceRequest other = (com.google.cloud.redis.v1.DeleteInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest 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.redis.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.DeleteInstanceRequest) com.google.cloud.redis.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.DeleteInstanceRequest.class, - com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1.DeleteInstanceRequest.class, com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.DeleteInstanceRequest.newBuilder() @@ -362,15 +326,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(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.redis.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.redis.v1.DeleteInstanceRequest result = - new com.google.cloud.redis.v1.DeleteInstanceRequest(this); + com.google.cloud.redis.v1.DeleteInstanceRequest result = new com.google.cloud.redis.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.redis.v1.DeleteInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.DeleteInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -489,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -515,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -541,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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); } @@ -624,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.DeleteInstanceRequest) private static final com.google.cloud.redis.v1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.DeleteInstanceRequest(); } @@ -638,16 +580,16 @@ public static com.google.cloud.redis.v1.DeleteInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..7106a1be --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java index 12a3a3cb..b0345c7e 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ExportInstanceRequest} */ -public final class ExportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ExportInstanceRequest) ExportInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportInstanceRequest.newBuilder() to construct. private ExportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private ExportInstanceRequest( 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 26: { + com.google.cloud.redis.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.redis.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.redis.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.redis.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = 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) { @@ -107,33 +86,29 @@ private ExportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ExportInstanceRequest.class, - com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ExportInstanceRequest.class, com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -141,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -150,15 +124,14 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -166,15 +139,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -185,16 +159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1.OutputConfig outputConfig_; /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -202,34 +171,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.redis.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -237,7 +195,6 @@ public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -269,7 +227,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,18 +238,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.redis.v1.ExportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.ExportInstanceRequest other = - (com.google.cloud.redis.v1.ExportInstanceRequest) obj; + com.google.cloud.redis.v1.ExportInstanceRequest other = (com.google.cloud.redis.v1.ExportInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -314,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ExportInstanceRequest 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.redis.v1.ExportInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.ExportInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.ExportInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.ExportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ExportInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ExportInstanceRequest) com.google.cloud.redis.v1.ExportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ExportInstanceRequest.class, - com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ExportInstanceRequest.class, com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.ExportInstanceRequest.newBuilder() @@ -442,15 +393,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(); @@ -466,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; } @java.lang.Override @@ -487,8 +439,7 @@ public com.google.cloud.redis.v1.ExportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.ExportInstanceRequest buildPartial() { - com.google.cloud.redis.v1.ExportInstanceRequest result = - new com.google.cloud.redis.v1.ExportInstanceRequest(this); + com.google.cloud.redis.v1.ExportInstanceRequest result = new com.google.cloud.redis.v1.ExportInstanceRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -503,39 +454,38 @@ public com.google.cloud.redis.v1.ExportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ExportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.ExportInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.ExportInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -543,8 +493,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.ExportInstanceRequest other) { - if (other == com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -583,8 +532,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -592,13 +539,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -607,8 +554,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -616,14 +561,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -631,8 +577,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -640,22 +584,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -663,18 +605,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -682,16 +621,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -699,58 +638,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.redis.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, - com.google.cloud.redis.v1.OutputConfig.Builder, - com.google.cloud.redis.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.redis.v1.OutputConfig, com.google.cloud.redis.v1.OutputConfig.Builder, com.google.cloud.redis.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.redis.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -766,17 +686,14 @@ public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig.Builder builderForValue) { + public Builder setOutputConfig( + com.google.cloud.redis.v1.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -787,23 +704,17 @@ public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig.Builder bu return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.redis.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -815,15 +726,11 @@ public Builder mergeOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -837,71 +744,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, - com.google.cloud.redis.v1.OutputConfig.Builder, - com.google.cloud.redis.v1.OutputConfigOrBuilder> + com.google.cloud.redis.v1.OutputConfig, com.google.cloud.redis.v1.OutputConfig.Builder, com.google.cloud.redis.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, - com.google.cloud.redis.v1.OutputConfig.Builder, - com.google.cloud.redis.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.OutputConfig, com.google.cloud.redis.v1.OutputConfig.Builder, com.google.cloud.redis.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ExportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ExportInstanceRequest) private static final com.google.cloud.redis.v1.ExportInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ExportInstanceRequest(); } @@ -925,16 +816,16 @@ public static com.google.cloud.redis.v1.ExportInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ExportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java index b7f082a5..48221b73 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ExportInstanceRequestOrBuilder - extends +public interface ExportInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ExportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -33,13 +15,10 @@ public interface ExportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -47,49 +26,35 @@ public interface ExportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.redis.v1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java similarity index 65% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java index 470a41ca..fbe068c1 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.FailoverInstanceRequest} */ -public final class FailoverInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FailoverInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.FailoverInstanceRequest) FailoverInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FailoverInstanceRequest.newBuilder() to construct. private FailoverInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FailoverInstanceRequest() { name_ = ""; dataProtectionMode_ = 0; @@ -44,15 +26,16 @@ private FailoverInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FailoverInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FailoverInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private FailoverInstanceRequest( 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: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - dataProtectionMode_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dataProtectionMode_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,41 +80,36 @@ private FailoverInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.FailoverInstanceRequest.class, - com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1.FailoverInstanceRequest.class, com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); } /** - * - * *
    * Specifies different modes of operation in relation to the data retention.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode} */ - public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnum { + public enum DataProtectionMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -143,8 +119,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     DATA_PROTECTION_MODE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -156,8 +130,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     LIMITED_DATA_LOSS(1),
     /**
-     *
-     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -169,8 +141,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -180,8 +150,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int DATA_PROTECTION_MODE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -193,8 +161,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int LIMITED_DATA_LOSS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -203,6 +169,7 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int FORCE_DATA_LOSS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -227,14 +194,10 @@ public static DataProtectionMode valueOf(int value) { */ public static DataProtectionMode forNumber(int value) { switch (value) { - case 0: - return DATA_PROTECTION_MODE_UNSPECIFIED; - case 1: - return LIMITED_DATA_LOSS; - case 2: - return FORCE_DATA_LOSS; - default: - return null; + case 0: return DATA_PROTECTION_MODE_UNSPECIFIED; + case 1: return LIMITED_DATA_LOSS; + case 2: return FORCE_DATA_LOSS; + default: return null; } } @@ -242,31 +205,29 @@ public static DataProtectionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DataProtectionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataProtectionMode findValueByNumber(int number) { + return DataProtectionMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataProtectionMode findValueByNumber(int number) { - return DataProtectionMode.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.redis.v1.FailoverInstanceRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.redis.v1.FailoverInstanceRequest.getDescriptor().getEnumTypes().get(0); } private static final DataProtectionMode[] VALUES = values(); @@ -274,7 +235,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DataProtectionMode 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; @@ -294,18 +256,13 @@ private DataProtectionMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -314,33 +271,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -351,51 +306,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DATA_PROTECTION_MODE_FIELD_NUMBER = 2; private int dataProtectionMode_; /** - * - * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override - public int getDataProtectionModeValue() { + @java.lang.Override public int getDataProtectionModeValue() { return dataProtectionMode_; } /** - * - * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProtectionMode. */ - @java.lang.Override - public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode - getDataProtectionMode() { + @java.lang.Override public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = - com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf( - dataProtectionMode_); - return result == null - ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); + return result == null ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -407,14 +344,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (dataProtectionMode_ - != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode - .DATA_PROTECTION_MODE_UNSPECIFIED - .getNumber()) { + if (dataProtectionMode_ != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, dataProtectionMode_); } unknownFields.writeTo(output); @@ -429,11 +364,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (dataProtectionMode_ - != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode - .DATA_PROTECTION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataProtectionMode_); + if (dataProtectionMode_ != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dataProtectionMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -443,15 +376,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.redis.v1.FailoverInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.FailoverInstanceRequest other = - (com.google.cloud.redis.v1.FailoverInstanceRequest) obj; + com.google.cloud.redis.v1.FailoverInstanceRequest other = (com.google.cloud.redis.v1.FailoverInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (dataProtectionMode_ != other.dataProtectionMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -474,126 +407,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.FailoverInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.FailoverInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.FailoverInstanceRequest) com.google.cloud.redis.v1.FailoverInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.FailoverInstanceRequest.class, - com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1.FailoverInstanceRequest.class, com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.FailoverInstanceRequest.newBuilder() @@ -601,15 +525,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 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; } @java.lang.Override @@ -642,8 +567,7 @@ public com.google.cloud.redis.v1.FailoverInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.FailoverInstanceRequest buildPartial() { - com.google.cloud.redis.v1.FailoverInstanceRequest result = - new com.google.cloud.redis.v1.FailoverInstanceRequest(this); + com.google.cloud.redis.v1.FailoverInstanceRequest result = new com.google.cloud.redis.v1.FailoverInstanceRequest(this); result.name_ = name_; result.dataProtectionMode_ = dataProtectionMode_; onBuilt(); @@ -654,39 +578,38 @@ public com.google.cloud.redis.v1.FailoverInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.FailoverInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.FailoverInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.FailoverInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -694,8 +617,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.FailoverInstanceRequest other) { - if (other == com.google.cloud.redis.v1.FailoverInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.FailoverInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -722,8 +644,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1.FailoverInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1.FailoverInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -735,24 +656,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -761,25 +678,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -787,73 +701,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -861,117 +762,85 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int dataProtectionMode_ = 0; /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override - public int getDataProtectionModeValue() { + @java.lang.Override public int getDataProtectionModeValue() { return dataProtectionMode_; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for dataProtectionMode to set. * @return This builder for chaining. */ public Builder setDataProtectionModeValue(int value) { - + dataProtectionMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProtectionMode. */ @java.lang.Override - public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode - getDataProtectionMode() { + public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = - com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf( - dataProtectionMode_); - return result == null - ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); + return result == null ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The dataProtectionMode to set. * @return This builder for chaining. */ - public Builder setDataProtectionMode( - com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode value) { + public Builder setDataProtectionMode(com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode value) { if (value == null) { throw new NullPointerException(); } - + dataProtectionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDataProtectionMode() { - + dataProtectionMode_ = 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); } @@ -981,12 +850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.FailoverInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.FailoverInstanceRequest) private static final com.google.cloud.redis.v1.FailoverInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.FailoverInstanceRequest(); } @@ -995,16 +864,16 @@ public static com.google.cloud.redis.v1.FailoverInstanceRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FailoverInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FailoverInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FailoverInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.FailoverInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java index 329e95a0..f5e0bda4 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java @@ -1,88 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface FailoverInstanceRequestOrBuilder - extends +public interface FailoverInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.FailoverInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for dataProtectionMode. */ int getDataProtectionModeValue(); /** - * - * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProtectionMode. */ com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode(); diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java similarity index 69% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java index f14d21d0..aa159db3 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * The Cloud Storage location for the output content
  * 
* * Protobuf type {@code google.cloud.redis.v1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsDestination.class, - com.google.cloud.redis.v1.GcsDestination.Builder.class); + com.google.cloud.redis.v1.GcsDestination.class, com.google.cloud.redis.v1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -201,14 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.GcsDestination)) { return super.equals(obj); } com.google.cloud.redis.v1.GcsDestination other = (com.google.cloud.redis.v1.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsDestination 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.redis.v1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the output content
    * 
* * Protobuf type {@code google.cloud.redis.v1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GcsDestination) com.google.cloud.redis.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsDestination.class, - com.google.cloud.redis.v1.GcsDestination.Builder.class); + com.google.cloud.redis.v1.GcsDestination.class, com.google.cloud.redis.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.redis.v1.GcsDestination.newBuilder() @@ -355,15 +324,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(); @@ -373,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_descriptor; } @java.lang.Override @@ -394,8 +364,7 @@ public com.google.cloud.redis.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.redis.v1.GcsDestination buildPartial() { - com.google.cloud.redis.v1.GcsDestination result = - new com.google.cloud.redis.v1.GcsDestination(this); + com.google.cloud.redis.v1.GcsDestination result = new com.google.cloud.redis.v1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -405,39 +374,38 @@ public com.google.cloud.redis.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GcsDestination) { - return mergeFrom((com.google.cloud.redis.v1.GcsDestination) other); + return mergeFrom((com.google.cloud.redis.v1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -481,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -504,22 +470,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -527,71 +492,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = 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); } @@ -601,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GcsDestination) private static final com.google.cloud.redis.v1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GcsDestination(); } @@ -615,16 +573,16 @@ public static com.google.cloud.redis.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java similarity index 53% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java index 73b29824..8fb82e36 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java @@ -1,52 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java similarity index 68% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java index 97283154..7b82a629 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * The Cloud Storage location for the input content
  * 
* * Protobuf type {@code google.cloud.redis.v1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsSource.class, - com.google.cloud.redis.v1.GcsSource.Builder.class); + com.google.cloud.redis.v1.GcsSource.class, com.google.cloud.redis.v1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -199,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.GcsSource)) { return super.equals(obj); } com.google.cloud.redis.v1.GcsSource other = (com.google.cloud.redis.v1.GcsSource) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,126 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.GcsSource parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.redis.v1.GcsSource parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsSource 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.redis.v1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the input content
    * 
* * Protobuf type {@code google.cloud.redis.v1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GcsSource) com.google.cloud.redis.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsSource.class, - com.google.cloud.redis.v1.GcsSource.Builder.class); + com.google.cloud.redis.v1.GcsSource.class, com.google.cloud.redis.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.redis.v1.GcsSource.newBuilder() @@ -352,15 +322,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(); @@ -370,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_descriptor; } @java.lang.Override @@ -401,39 +372,38 @@ public com.google.cloud.redis.v1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GcsSource) { - return mergeFrom((com.google.cloud.redis.v1.GcsSource) other); + return mergeFrom((com.google.cloud.redis.v1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -477,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -499,21 +467,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -521,68 +488,61 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = 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); } @@ -592,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GcsSource) private static final com.google.cloud.redis.v1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GcsSource(); } @@ -606,16 +566,16 @@ public static com.google.cloud.redis.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java similarity index 50% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java index 33ac74e5..32af5f56 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java index 3f5941cc..a21a595c 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [GetInstanceAuthString][google.cloud.redis.v1.CloudRedis.GetInstanceAuthString].
  * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceAuthStringRequest} */ -public final class GetInstanceAuthStringRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceAuthStringRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GetInstanceAuthStringRequest) GetInstanceAuthStringRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceAuthStringRequest.newBuilder() to construct. private GetInstanceAuthStringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceAuthStringRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceAuthStringRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstanceAuthStringRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstanceAuthStringRequest( 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) { @@ -91,43 +73,36 @@ private GetInstanceAuthStringRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, - com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -136,33 +111,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.GetInstanceAuthStringRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.GetInstanceAuthStringRequest other = - (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) obj; + com.google.cloud.redis.v1.GetInstanceAuthStringRequest other = (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest prototype) { + public static Builder newBuilder(com.google.cloud.redis.v1.GetInstanceAuthStringRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [GetInstanceAuthString][google.cloud.redis.v1.CloudRedis.GetInstanceAuthString].
    * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceAuthStringRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GetInstanceAuthStringRequest) com.google.cloud.redis.v1.GetInstanceAuthStringRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, - com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.GetInstanceAuthStringRequest.newBuilder() @@ -363,15 +326,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(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.redis.v1.GetInstanceAuthStringRequest build() { @java.lang.Override public com.google.cloud.redis.v1.GetInstanceAuthStringRequest buildPartial() { - com.google.cloud.redis.v1.GetInstanceAuthStringRequest result = - new com.google.cloud.redis.v1.GetInstanceAuthStringRequest(this); + com.google.cloud.redis.v1.GetInstanceAuthStringRequest result = new com.google.cloud.redis.v1.GetInstanceAuthStringRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.redis.v1.GetInstanceAuthStringRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GetInstanceAuthStringRequest) { - return mergeFrom((com.google.cloud.redis.v1.GetInstanceAuthStringRequest) other); + return mergeFrom((com.google.cloud.redis.v1.GetInstanceAuthStringRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.GetInstanceAuthStringRequest other) { - if (other == com.google.cloud.redis.v1.GetInstanceAuthStringRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.GetInstanceAuthStringRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GetInstanceAuthStringRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceAuthStringRequest) private static final com.google.cloud.redis.v1.GetInstanceAuthStringRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GetInstanceAuthStringRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceAuthStringRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceAuthStringRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceAuthStringRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceAuthStringRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1.GetInstanceAuthStringRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java new file mode 100644 index 00000000..218bbfca --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface GetInstanceAuthStringRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceAuthStringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java index b5fd25b3..1ad7f8dd 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstanceRequest( 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) { @@ -91,43 +73,36 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceRequest.class, - com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceRequest.class, com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -136,33 +111,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.GetInstanceRequest other = - (com.google.cloud.redis.v1.GetInstanceRequest) obj; + com.google.cloud.redis.v1.GetInstanceRequest other = (com.google.cloud.redis.v1.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceRequest 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.redis.v1.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GetInstanceRequest) com.google.cloud.redis.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceRequest.class, - com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceRequest.class, com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.GetInstanceRequest.newBuilder() @@ -362,15 +326,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(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.redis.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.GetInstanceRequest buildPartial() { - com.google.cloud.redis.v1.GetInstanceRequest result = - new com.google.cloud.redis.v1.GetInstanceRequest(this); + com.google.cloud.redis.v1.GetInstanceRequest result = new com.google.cloud.redis.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.redis.v1.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -488,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -514,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -540,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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); } @@ -623,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceRequest) private static final com.google.cloud.redis.v1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GetInstanceRequest(); } @@ -637,16 +580,16 @@ public static com.google.cloud.redis.v1.GetInstanceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..163f76f6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java index 657d811a..432a53bc 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ImportInstanceRequest} */ -public final class ImportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ImportInstanceRequest) ImportInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportInstanceRequest.newBuilder() to construct. private ImportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private ImportInstanceRequest( 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 26: { + com.google.cloud.redis.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.redis.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.redis.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.redis.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = 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) { @@ -107,33 +86,29 @@ private ImportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ImportInstanceRequest.class, - com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ImportInstanceRequest.class, com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -141,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -150,15 +124,14 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -166,15 +139,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -185,16 +159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1.InputConfig inputConfig_; /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -202,34 +171,23 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.redis.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -237,7 +195,6 @@ public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -269,7 +227,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,18 +238,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.redis.v1.ImportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.ImportInstanceRequest other = - (com.google.cloud.redis.v1.ImportInstanceRequest) obj; + com.google.cloud.redis.v1.ImportInstanceRequest other = (com.google.cloud.redis.v1.ImportInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -314,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ImportInstanceRequest 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.redis.v1.ImportInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.ImportInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.ImportInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.ImportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ImportInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ImportInstanceRequest) com.google.cloud.redis.v1.ImportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ImportInstanceRequest.class, - com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ImportInstanceRequest.class, com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.ImportInstanceRequest.newBuilder() @@ -442,15 +393,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(); @@ -466,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; } @java.lang.Override @@ -487,8 +439,7 @@ public com.google.cloud.redis.v1.ImportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.ImportInstanceRequest buildPartial() { - com.google.cloud.redis.v1.ImportInstanceRequest result = - new com.google.cloud.redis.v1.ImportInstanceRequest(this); + com.google.cloud.redis.v1.ImportInstanceRequest result = new com.google.cloud.redis.v1.ImportInstanceRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -503,39 +454,38 @@ public com.google.cloud.redis.v1.ImportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ImportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.ImportInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.ImportInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -543,8 +493,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.ImportInstanceRequest other) { - if (other == com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -583,8 +532,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -592,13 +539,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -607,8 +554,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -616,14 +561,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -631,8 +577,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -640,22 +584,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -663,18 +605,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -682,16 +621,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -699,58 +638,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.redis.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, - com.google.cloud.redis.v1.InputConfig.Builder, - com.google.cloud.redis.v1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.redis.v1.InputConfig, com.google.cloud.redis.v1.InputConfig.Builder, com.google.cloud.redis.v1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.redis.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -766,17 +686,14 @@ public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig value) { return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig( + com.google.cloud.redis.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -787,23 +704,17 @@ public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig.Builder buil return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.redis.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.redis.v1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -815,15 +726,11 @@ public Builder mergeInputConfig(com.google.cloud.redis.v1.InputConfig value) { return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -837,71 +744,55 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.redis.v1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, - com.google.cloud.redis.v1.InputConfig.Builder, - com.google.cloud.redis.v1.InputConfigOrBuilder> + com.google.cloud.redis.v1.InputConfig, com.google.cloud.redis.v1.InputConfig.Builder, com.google.cloud.redis.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, - com.google.cloud.redis.v1.InputConfig.Builder, - com.google.cloud.redis.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.InputConfig, com.google.cloud.redis.v1.InputConfig.Builder, com.google.cloud.redis.v1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ImportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ImportInstanceRequest) private static final com.google.cloud.redis.v1.ImportInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ImportInstanceRequest(); } @@ -925,16 +816,16 @@ public static com.google.cloud.redis.v1.ImportInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ImportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java index 07a13bcb..fdeb2994 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ImportInstanceRequestOrBuilder - extends +public interface ImportInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ImportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -33,13 +15,10 @@ public interface ImportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -47,49 +26,35 @@ public interface ImportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.redis.v1.InputConfig getInputConfig(); /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java similarity index 69% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java index e6c014f0..620f7e01 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * The input content
  * 
* * Protobuf type {@code google.cloud.redis.v1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InputConfig() {} + private InputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,27 @@ private InputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.redis.v1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.redis.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.redis.v1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.redis.v1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.redis.v1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +80,34 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InputConfig.class, - com.google.cloud.redis.v1.InputConfig.Builder.class); + com.google.cloud.redis.v1.InputConfig.class, com.google.cloud.redis.v1.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -146,34 +123,29 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -181,26 +153,21 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.redis.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; + return (com.google.cloud.redis.v1.GcsSource) source_; } return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
@@ -210,13 +177,12 @@ public com.google.cloud.redis.v1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; + return (com.google.cloud.redis.v1.GcsSource) source_; } return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,7 +194,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 (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1.GcsSource) source_); } @@ -242,9 +209,8 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.redis.v1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.redis.v1.GcsSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -254,7 +220,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.InputConfig)) { return super.equals(obj); @@ -264,7 +230,8 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -293,126 +260,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.InputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.InputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.InputConfig parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.redis.v1.InputConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.InputConfig 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.redis.v1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 input content
    * 
* * Protobuf type {@code google.cloud.redis.v1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.InputConfig) com.google.cloud.redis.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InputConfig.class, - com.google.cloud.redis.v1.InputConfig.Builder.class); + com.google.cloud.redis.v1.InputConfig.class, com.google.cloud.redis.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1.InputConfig.newBuilder() @@ -420,15 +379,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(); @@ -438,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_descriptor; } @java.lang.Override @@ -459,8 +419,7 @@ public com.google.cloud.redis.v1.InputConfig build() { @java.lang.Override public com.google.cloud.redis.v1.InputConfig buildPartial() { - com.google.cloud.redis.v1.InputConfig result = - new com.google.cloud.redis.v1.InputConfig(this); + com.google.cloud.redis.v1.InputConfig result = new com.google.cloud.redis.v1.InputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -477,39 +436,38 @@ public com.google.cloud.redis.v1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.InputConfig) { - return mergeFrom((com.google.cloud.redis.v1.InputConfig) other); + return mergeFrom((com.google.cloud.redis.v1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -519,15 +477,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1.InputConfig other) { if (other == com.google.cloud.redis.v1.InputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -557,12 +513,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -572,20 +528,15 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, - com.google.cloud.redis.v1.GcsSource.Builder, - com.google.cloud.redis.v1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.redis.v1.GcsSource, com.google.cloud.redis.v1.GcsSource.Builder, com.google.cloud.redis.v1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -593,14 +544,11 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -618,8 +566,6 @@ public com.google.cloud.redis.v1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -640,15 +586,14 @@ public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource value) { return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; */ - public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource.Builder builderForValue) { + public Builder setGcsSource( + com.google.cloud.redis.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -659,8 +604,6 @@ public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource.Builder builderF return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -669,13 +612,10 @@ public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource.Builder builderF */ public Builder mergeGcsSource(com.google.cloud.redis.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1 - && source_ != com.google.cloud.redis.v1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.redis.v1.GcsSource.newBuilder( - (com.google.cloud.redis.v1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.cloud.redis.v1.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.redis.v1.GcsSource.newBuilder((com.google.cloud.redis.v1.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -691,8 +631,6 @@ public Builder mergeGcsSource(com.google.cloud.redis.v1.GcsSource value) { return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -716,8 +654,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -728,8 +664,6 @@ public com.google.cloud.redis.v1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -748,8 +682,6 @@ public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { } } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -757,30 +689,26 @@ public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { * .google.cloud.redis.v1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, - com.google.cloud.redis.v1.GcsSource.Builder, - com.google.cloud.redis.v1.GcsSourceOrBuilder> + com.google.cloud.redis.v1.GcsSource, com.google.cloud.redis.v1.GcsSource.Builder, com.google.cloud.redis.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, - com.google.cloud.redis.v1.GcsSource.Builder, - com.google.cloud.redis.v1.GcsSourceOrBuilder>( - (com.google.cloud.redis.v1.GcsSource) source_, getParentForChildren(), isClean()); + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.GcsSource, com.google.cloud.redis.v1.GcsSource.Builder, com.google.cloud.redis.v1.GcsSourceOrBuilder>( + (com.google.cloud.redis.v1.GcsSource) source_, + getParentForChildren(), + isClean()); source_ = null; } sourceCase_ = 1; - onChanged(); - ; + onChanged();; return gcsSourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.InputConfig) private static final com.google.cloud.redis.v1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.InputConfig(); } @@ -804,16 +732,16 @@ public static com.google.cloud.redis.v1.InputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -828,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java index 5e8b4d7b..106bcc83 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.redis.v1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java similarity index 71% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java index 390a27f6..1890d7d4 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * A Memorystore for Redis instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; displayName_ = ""; @@ -62,15 +44,16 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -90,262 +73,229 @@ private Instance( 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(); - displayName_ = s; - break; - } - case 26: - { - 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; + displayName_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - 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 34: { + java.lang.String s = input.readStringRequireUtf8(); - locationId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + locationId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - alternativeLocationId_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + alternativeLocationId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - redisVersion_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); + redisVersion_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); - reservedIpRange_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + reservedIpRange_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); - host_ = s; - break; - } - case 88: - { - port_ = input.readInt32(); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); + host_ = s; + break; + } + case 88: { + + port_ = input.readInt32(); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); - currentLocationId_ = s; - break; + currentLocationId_ = s; + break; + } + case 106: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 106: - { - 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 112: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 112: { + int rawValue = input.readEnum(); - statusMessage_ = s; - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - redisConfigs_ = - com.google.protobuf.MapField.newMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry redisConfigs__ = - input.readMessage( - RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - redisConfigs_.getMutableMap().put(redisConfigs__.getKey(), redisConfigs__.getValue()); - break; - } - case 136: - { - int rawValue = input.readEnum(); + state_ = rawValue; + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); - tier_ = rawValue; - break; - } - case 144: - { - memorySizeGb_ = input.readInt32(); - break; + statusMessage_ = s; + break; + } + case 130: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + redisConfigs_ = com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 162: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + redisConfigs__ = input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + redisConfigs_.getMutableMap().put( + redisConfigs__.getKey(), redisConfigs__.getValue()); + break; + } + case 136: { + int rawValue = input.readEnum(); - authorizedNetwork_ = s; - break; - } - case 170: - { - java.lang.String s = input.readStringRequireUtf8(); + tier_ = rawValue; + break; + } + case 144: { - persistenceIamIdentity_ = s; - break; - } - case 176: - { - int rawValue = input.readEnum(); + memorySizeGb_ = input.readInt32(); + break; + } + case 162: { + java.lang.String s = input.readStringRequireUtf8(); - connectMode_ = rawValue; - break; - } - case 184: - { - authEnabled_ = input.readBool(); - break; - } - case 202: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - serverCaCerts_.add( - input.readMessage( - com.google.cloud.redis.v1.TlsCertificate.parser(), extensionRegistry)); - break; - } - case 208: - { - int rawValue = input.readEnum(); + authorizedNetwork_ = s; + break; + } + case 170: { + java.lang.String s = input.readStringRequireUtf8(); - transitEncryptionMode_ = rawValue; - break; - } - case 218: - { - com.google.cloud.redis.v1.MaintenancePolicy.Builder subBuilder = null; - if (maintenancePolicy_ != null) { - subBuilder = maintenancePolicy_.toBuilder(); - } - maintenancePolicy_ = - input.readMessage( - com.google.cloud.redis.v1.MaintenancePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenancePolicy_); - maintenancePolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 226: - { - com.google.cloud.redis.v1.MaintenanceSchedule.Builder subBuilder = null; - if (maintenanceSchedule_ != null) { - subBuilder = maintenanceSchedule_.toBuilder(); - } - maintenanceSchedule_ = - input.readMessage( - com.google.cloud.redis.v1.MaintenanceSchedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenanceSchedule_); - maintenanceSchedule_ = subBuilder.buildPartial(); - } - - break; - } - case 242: - { - java.lang.String s = input.readStringRequireUtf8(); + persistenceIamIdentity_ = s; + break; + } + case 176: { + int rawValue = input.readEnum(); - secondaryIpRange_ = s; - break; + connectMode_ = rawValue; + break; + } + case 184: { + + authEnabled_ = input.readBool(); + break; + } + case 202: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + serverCaCerts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 248: - { - replicaCount_ = input.readInt32(); - break; + serverCaCerts_.add( + input.readMessage(com.google.cloud.redis.v1.TlsCertificate.parser(), extensionRegistry)); + break; + } + case 208: { + int rawValue = input.readEnum(); + + transitEncryptionMode_ = rawValue; + break; + } + case 218: { + com.google.cloud.redis.v1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); } - case 258: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nodes_.add( - input.readMessage( - com.google.cloud.redis.v1.NodeInfo.parser(), extensionRegistry)); - break; + maintenancePolicy_ = input.readMessage(com.google.cloud.redis.v1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); } - case 266: - { - java.lang.String s = input.readStringRequireUtf8(); - readEndpoint_ = s; - break; + break; + } + case 226: { + com.google.cloud.redis.v1.MaintenanceSchedule.Builder subBuilder = null; + if (maintenanceSchedule_ != null) { + subBuilder = maintenanceSchedule_.toBuilder(); } - case 272: - { - readEndpointPort_ = input.readInt32(); - break; + maintenanceSchedule_ = input.readMessage(com.google.cloud.redis.v1.MaintenanceSchedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenanceSchedule_); + maintenanceSchedule_ = subBuilder.buildPartial(); } - case 280: - { - int rawValue = input.readEnum(); - readReplicasMode_ = rawValue; - break; + break; + } + case 242: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryIpRange_ = s; + break; + } + case 248: { + + replicaCount_ = input.readInt32(); + break; + } + case 258: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nodes_.add( + input.readMessage(com.google.cloud.redis.v1.NodeInfo.parser(), extensionRegistry)); + break; + } + case 266: { + java.lang.String s = input.readStringRequireUtf8(); + + readEndpoint_ = s; + break; + } + case 272: { + + readEndpointPort_ = input.readInt32(); + break; + } + case 280: { + int rawValue = input.readEnum(); + + readReplicasMode_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -353,7 +303,8 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { serverCaCerts_ = java.util.Collections.unmodifiableList(serverCaCerts_); @@ -365,48 +316,43 @@ private Instance( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_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 internalGetLabels(); case 16: return internalGetRedisConfigs(); 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.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.Instance.class, - com.google.cloud.redis.v1.Instance.Builder.class); + com.google.cloud.redis.v1.Instance.class, com.google.cloud.redis.v1.Instance.Builder.class); } /** - * - * *
    * Represents the different states of a Redis instance.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -415,8 +361,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Redis instance is being created.
      * 
@@ -425,8 +369,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Redis instance has been created and is fully usable.
      * 
@@ -435,8 +377,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -447,8 +387,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     UPDATING(3),
     /**
-     *
-     *
      * 
      * Redis instance is being deleted.
      * 
@@ -457,8 +395,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -467,8 +403,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ REPAIRING(5), /** - * - * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -477,8 +411,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ MAINTENANCE(6), /** - * - * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -487,8 +419,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ IMPORTING(8), /** - * - * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -500,8 +430,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -510,8 +438,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Redis instance is being created.
      * 
@@ -520,8 +446,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Redis instance has been created and is fully usable.
      * 
@@ -530,8 +454,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -542,8 +464,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UPDATING_VALUE = 3;
     /**
-     *
-     *
      * 
      * Redis instance is being deleted.
      * 
@@ -552,8 +472,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -562,8 +480,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REPAIRING_VALUE = 5; /** - * - * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -572,8 +488,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MAINTENANCE_VALUE = 6; /** - * - * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -582,8 +496,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPORTING_VALUE = 8; /** - * - * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -592,6 +504,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILING_OVER_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -616,61 +529,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return UPDATING; - case 4: - return DELETING; - case 5: - return REPAIRING; - case 6: - return MAINTENANCE; - case 8: - return IMPORTING; - case 9: - return FAILING_OVER; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return UPDATING; + case 4: return DELETING; + case 5: return REPAIRING; + case 6: return MAINTENANCE; + case 8: return IMPORTING; + case 9: return FAILING_OVER; + 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.redis.v1.Instance.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; @@ -688,18 +595,15 @@ private State(int value) { } /** - * - * *
    * Available service tiers to choose from
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.Tier} */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -708,8 +612,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * BASIC tier: standalone instance
      * 
@@ -718,8 +620,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ BASIC(1), /** - * - * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -731,8 +631,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -741,8 +639,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * BASIC tier: standalone instance
      * 
@@ -751,8 +647,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIC_VALUE = 1; /** - * - * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -761,6 +655,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_HA_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -785,49 +680,49 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return BASIC; - case 3: - return STANDARD_HA; - default: - return null; + case 0: return TIER_UNSPECIFIED; + case 1: return BASIC; + case 3: return STANDARD_HA; + 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< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(1); } private static final Tier[] VALUES = values(); - public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier 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; @@ -845,18 +740,15 @@ private Tier(int value) { } /** - * - * *
    * Available connection modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.ConnectMode} */ - public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { + public enum ConnectMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -865,8 +757,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ CONNECT_MODE_UNSPECIFIED(0), /** - * - * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -875,8 +765,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ DIRECT_PEERING(1), /** - * - * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -890,8 +778,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not set.
      * 
@@ -900,8 +786,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONNECT_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -910,8 +794,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DIRECT_PEERING_VALUE = 1; /** - * - * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -922,6 +804,7 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PRIVATE_SERVICE_ACCESS_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -946,49 +829,49 @@ public static ConnectMode valueOf(int value) {
      */
     public static ConnectMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return CONNECT_MODE_UNSPECIFIED;
-        case 1:
-          return DIRECT_PEERING;
-        case 2:
-          return PRIVATE_SERVICE_ACCESS;
-        default:
-          return null;
+        case 0: return CONNECT_MODE_UNSPECIFIED;
+        case 1: return DIRECT_PEERING;
+        case 2: return PRIVATE_SERVICE_ACCESS;
+        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<
+        ConnectMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ConnectMode findValueByNumber(int number) {
+              return ConnectMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ConnectMode findValueByNumber(int number) {
-            return ConnectMode.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(2);
     }
 
     private static final ConnectMode[] VALUES = values();
 
-    public static ConnectMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ConnectMode 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;
@@ -1006,18 +889,15 @@ private ConnectMode(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Available TLS modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.TransitEncryptionMode} */ - public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessageEnum { + public enum TransitEncryptionMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -1026,8 +906,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ TRANSIT_ENCRYPTION_MODE_UNSPECIFIED(0), /** - * - * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -1036,8 +914,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ SERVER_AUTHENTICATION(1), /** - * - * *
      * TLS is disabled for the instance.
      * 
@@ -1049,8 +925,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage ; /** - * - * *
      * Not set.
      * 
@@ -1059,8 +933,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ public static final int TRANSIT_ENCRYPTION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -1069,8 +941,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ public static final int SERVER_AUTHENTICATION_VALUE = 1; /** - * - * *
      * TLS is disabled for the instance.
      * 
@@ -1079,6 +949,7 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1103,14 +974,10 @@ public static TransitEncryptionMode valueOf(int value) { */ public static TransitEncryptionMode forNumber(int value) { switch (value) { - case 0: - return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; - case 1: - return SERVER_AUTHENTICATION; - case 2: - return DISABLED; - default: - return null; + case 0: return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; + case 1: return SERVER_AUTHENTICATION; + case 2: return DISABLED; + default: return null; } } @@ -1118,28 +985,28 @@ public static TransitEncryptionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TransitEncryptionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransitEncryptionMode findValueByNumber(int number) { + return TransitEncryptionMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransitEncryptionMode findValueByNumber(int number) { - return TransitEncryptionMode.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(3); } @@ -1148,7 +1015,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static TransitEncryptionMode 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; @@ -1166,18 +1034,15 @@ private TransitEncryptionMode(int value) { } /** - * - * *
    * Read replicas mode.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.ReadReplicasMode} */ - public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum { + public enum ReadReplicasMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1187,8 +1052,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     READ_REPLICAS_MODE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1198,8 +1061,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     READ_REPLICAS_DISABLED(1),
     /**
-     *
-     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1212,8 +1073,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1223,8 +1082,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int READ_REPLICAS_MODE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1234,8 +1091,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int READ_REPLICAS_DISABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1245,6 +1100,7 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int READ_REPLICAS_ENABLED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1269,42 +1125,39 @@ public static ReadReplicasMode valueOf(int value) {
      */
     public static ReadReplicasMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return READ_REPLICAS_MODE_UNSPECIFIED;
-        case 1:
-          return READ_REPLICAS_DISABLED;
-        case 2:
-          return READ_REPLICAS_ENABLED;
-        default:
-          return null;
+        case 0: return READ_REPLICAS_MODE_UNSPECIFIED;
+        case 1: return READ_REPLICAS_DISABLED;
+        case 2: return READ_REPLICAS_ENABLED;
+        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<
+        ReadReplicasMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ReadReplicasMode findValueByNumber(int number) {
+              return ReadReplicasMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ReadReplicasMode findValueByNumber(int number) {
-                return ReadReplicasMode.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(4);
     }
 
@@ -1313,7 +1166,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ReadReplicasMode 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;
@@ -1333,8 +1187,6 @@ private ReadReplicasMode(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1347,7 +1199,6 @@ private ReadReplicasMode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1356,15 +1207,14 @@ 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. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1377,15 +1227,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1396,14 +1247,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1412,29 +1260,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; } } /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @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 { @@ -1443,23 +1291,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_Instance_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.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_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_; } @@ -1468,30 +1317,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -1499,12 +1346,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -1512,16 +1358,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -1529,11 +1375,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1543,8 +1390,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1554,7 +1399,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locationId. */ @java.lang.Override @@ -1563,15 +1407,14 @@ public java.lang.String getLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } } /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1581,15 +1424,16 @@ public java.lang.String getLocationId() {
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationId_ = b; return b; } else { @@ -1600,8 +1444,6 @@ public com.google.protobuf.ByteString getLocationIdBytes() { public static final int ALTERNATIVE_LOCATION_ID_FIELD_NUMBER = 5; private volatile java.lang.Object alternativeLocationId_; /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1611,7 +1453,6 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alternativeLocationId. */ @java.lang.Override @@ -1620,15 +1461,14 @@ public java.lang.String getAlternativeLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; } } /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1638,15 +1478,16 @@ public java.lang.String getAlternativeLocationId() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alternativeLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString + getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -1657,8 +1498,6 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { public static final int REDIS_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object redisVersion_; /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1670,7 +1509,6 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The redisVersion. */ @java.lang.Override @@ -1679,15 +1517,14 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1699,15 +1536,16 @@ public java.lang.String getRedisVersion() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -1718,8 +1556,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 9; private volatile java.lang.Object reservedIpRange_; /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1732,7 +1568,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservedIpRange. */ @java.lang.Override @@ -1741,15 +1576,14 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1762,15 +1596,16 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1781,8 +1616,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { public static final int SECONDARY_IP_RANGE_FIELD_NUMBER = 30; private volatile java.lang.Object secondaryIpRange_; /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1792,7 +1625,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The secondaryIpRange. */ @java.lang.Override @@ -1801,15 +1633,14 @@ public java.lang.String getSecondaryIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; } } /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1819,15 +1650,16 @@ public java.lang.String getSecondaryIpRange() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for secondaryIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString + getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -1838,15 +1670,12 @@ public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { public static final int HOST_FIELD_NUMBER = 10; private volatile java.lang.Object host_; /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ @java.lang.Override @@ -1855,30 +1684,30 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -1889,14 +1718,11 @@ public com.google.protobuf.ByteString getHostBytes() { public static final int PORT_FIELD_NUMBER = 11; private int port_; /** - * - * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -1907,8 +1733,6 @@ public int getPort() { public static final int CURRENT_LOCATION_ID_FIELD_NUMBER = 12; private volatile java.lang.Object currentLocationId_; /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1916,7 +1740,6 @@ public int getPort() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The currentLocationId. */ @java.lang.Override @@ -1925,15 +1748,14 @@ public java.lang.String getCurrentLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; } } /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1941,15 +1763,16 @@ public java.lang.String getCurrentLocationId() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for currentLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString + getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -1960,15 +1783,11 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1976,15 +1795,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1992,14 +1807,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2009,55 +1821,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 14; private int state_; /** - * - * *
    * Output only. The current state of this instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.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 current state of this instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.redis.v1.Instance.State getState() { + @java.lang.Override public com.google.cloud.redis.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.State result = - com.google.cloud.redis.v1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 15; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -2066,30 +1862,30 @@ 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. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.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 { @@ -2098,22 +1894,21 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } public static final int REDIS_CONFIGS_FIELD_NUMBER = 16; - private static final class RedisConfigsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_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.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField redisConfigs_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> redisConfigs_; private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); @@ -2125,8 +1920,6 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2144,25 +1937,24 @@ public int getRedisConfigsCount() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsRedisConfigs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetRedisConfigs().getMap().containsKey(key); } - /** Use {@link #getRedisConfigsMap()} instead. */ + /** + * Use {@link #getRedisConfigsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2180,16 +1972,14 @@ public java.util.Map getRedisConfigs() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2207,21 +1997,19 @@ public java.util.Map getRedisConfigsMap() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2239,15 +2027,15 @@ public java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + + public java.lang.String getRedisConfigsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2257,52 +2045,38 @@ public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { public static final int TIER_FIELD_NUMBER = 17; private int tier_; /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The tier. */ - @java.lang.Override - public com.google.cloud.redis.v1.Instance.Tier getTier() { + @java.lang.Override public com.google.cloud.redis.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.Tier result = - com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result; } public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 18; private int memorySizeGb_; /** - * - * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeGb. */ @java.lang.Override @@ -2313,8 +2087,6 @@ public int getMemorySizeGb() { public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 20; private volatile java.lang.Object authorizedNetwork_; /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2323,7 +2095,6 @@ public int getMemorySizeGb() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authorizedNetwork. */ @java.lang.Override @@ -2332,15 +2103,14 @@ public java.lang.String getAuthorizedNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; } } /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2349,15 +2119,16 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for authorizedNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString + getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -2368,8 +2139,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { public static final int PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER = 21; private volatile java.lang.Object persistenceIamIdentity_; /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2379,7 +2148,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The persistenceIamIdentity. */ @java.lang.Override @@ -2388,15 +2156,14 @@ public java.lang.String getPersistenceIamIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; } } /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2406,15 +2173,16 @@ public java.lang.String getPersistenceIamIdentity() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for persistenceIamIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString + getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -2425,50 +2193,35 @@ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { public static final int CONNECT_MODE_FIELD_NUMBER = 22; private int connectMode_; /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override - public int getConnectModeValue() { + @java.lang.Override public int getConnectModeValue() { return connectMode_; } /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectMode. */ - @java.lang.Override - public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() { + @java.lang.Override public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ConnectMode result = - com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); + com.google.cloud.redis.v1.Instance.ConnectMode result = com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); return result == null ? com.google.cloud.redis.v1.Instance.ConnectMode.UNRECOGNIZED : result; } public static final int AUTH_ENABLED_FIELD_NUMBER = 23; private boolean authEnabled_; /** - * - * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -2476,7 +2229,6 @@ public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() {
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authEnabled. */ @java.lang.Override @@ -2487,140 +2239,101 @@ public boolean getAuthEnabled() { public static final int SERVER_CA_CERTS_FIELD_NUMBER = 25; private java.util.List serverCaCerts_; /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getServerCaCertsList() { return serverCaCerts_; } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getServerCaCertsOrBuilderList() { return serverCaCerts_; } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getServerCaCertsCount() { return serverCaCerts_.size(); } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index) { return serverCaCerts_.get(index); } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index) { + public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( + int index) { return serverCaCerts_.get(index); } public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 26; private int transitEncryptionMode_; /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override - public int getTransitEncryptionModeValue() { + @java.lang.Override public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The transitEncryptionMode. */ - @java.lang.Override - public com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode() { + @java.lang.Override public com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = - com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); + return result == null ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; } public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 27; private com.google.cloud.redis.v1.MaintenancePolicy maintenancePolicy_; /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maintenancePolicy field is set. */ @java.lang.Override @@ -2628,36 +2341,25 @@ public boolean hasMaintenancePolicy() { return maintenancePolicy_ != null; } /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return The maintenancePolicy. */ @java.lang.Override public com.google.cloud.redis.v1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null - ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; + return maintenancePolicy_ == null ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; } /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { @@ -2667,17 +2369,12 @@ public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicy public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 28; private com.google.cloud.redis.v1.MaintenanceSchedule maintenanceSchedule_; /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maintenanceSchedule field is set. */ @java.lang.Override @@ -2685,36 +2382,25 @@ public boolean hasMaintenanceSchedule() { return maintenanceSchedule_ != null; } /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maintenanceSchedule. */ @java.lang.Override public com.google.cloud.redis.v1.MaintenanceSchedule getMaintenanceSchedule() { - return maintenanceSchedule_ == null - ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() - : maintenanceSchedule_; + return maintenanceSchedule_ == null ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; } /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { @@ -2723,9 +2409,7 @@ public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceSche public static final int REPLICA_COUNT_FIELD_NUMBER = 31; private int replicaCount_; - /** - * - * + /** *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -2735,7 +2419,6 @@ public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceSche
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ @java.lang.Override @@ -2746,87 +2429,66 @@ public int getReplicaCount() { public static final int NODES_FIELD_NUMBER = 32; private java.util.List nodes_; /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getNodesOrBuilderList() { return nodes_; } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.redis.v1.NodeInfo getNodes(int index) { return nodes_.get(index); } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index) { + public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder( + int index) { return nodes_.get(index); } public static final int READ_ENDPOINT_FIELD_NUMBER = 33; private volatile java.lang.Object readEndpoint_; /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2835,7 +2497,6 @@ public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index)
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpoint. */ @java.lang.Override @@ -2844,15 +2505,14 @@ public java.lang.String getReadEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; } } /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2861,15 +2521,16 @@ public java.lang.String getReadEndpoint() {
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for readEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString getReadEndpointBytes() { + public com.google.protobuf.ByteString + getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -2880,15 +2541,12 @@ public com.google.protobuf.ByteString getReadEndpointBytes() { public static final int READ_ENDPOINT_PORT_FIELD_NUMBER = 34; private int readEndpointPort_; /** - * - * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpointPort. */ @java.lang.Override @@ -2899,47 +2557,31 @@ public int getReadEndpointPort() { public static final int READ_REPLICAS_MODE_FIELD_NUMBER = 35; private int readReplicasMode_; /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override - public int getReadReplicasModeValue() { + @java.lang.Override public int getReadReplicasModeValue() { return readReplicasMode_; } /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The readReplicasMode. */ - @java.lang.Override - public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() { + @java.lang.Override public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ReadReplicasMode result = - com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null - ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2951,15 +2593,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); } @@ -2990,8 +2637,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, statusMessage_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 16); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRedisConfigs(), + RedisConfigsDefaultEntryHolder.defaultEntry, + 16); if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(17, tier_); } @@ -3004,8 +2655,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, persistenceIamIdentity_); } - if (connectMode_ - != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + if (connectMode_ != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(22, connectMode_); } if (authEnabled_ != false) { @@ -3014,10 +2664,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < serverCaCerts_.size(); i++) { output.writeMessage(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ - != com.google.cloud.redis.v1.Instance.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { + if (transitEncryptionMode_ != com.google.cloud.redis.v1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { @@ -3041,9 +2688,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readEndpointPort_ != 0) { output.writeInt32(34, readEndpointPort_); } - if (readReplicasMode_ - != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED - .getNumber()) { + if (readReplicasMode_ != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(35, readReplicasMode_); } unknownFields.writeTo(output); @@ -3061,15 +2706,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - 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(3, labels__); + 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(3, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); @@ -3087,35 +2732,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentLocationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currentLocationId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); } if (state_ != com.google.cloud.redis.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, statusMessage_); } - for (java.util.Map.Entry entry : - internalGetRedisConfigs().getMap().entrySet()) { - com.google.protobuf.MapEntry redisConfigs__ = - RedisConfigsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, redisConfigs__); + for (java.util.Map.Entry entry + : internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry + redisConfigs__ = RedisConfigsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, redisConfigs__); } if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, tier_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, tier_); } if (memorySizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, memorySizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, memorySizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, authorizedNetwork_); @@ -3123,48 +2773,51 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, persistenceIamIdentity_); } - if (connectMode_ - != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, connectMode_); + if (connectMode_ != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(22, connectMode_); } if (authEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, authEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(23, authEnabled_); } for (int i = 0; i < serverCaCerts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, serverCaCerts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ - != com.google.cloud.redis.v1.Instance.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, transitEncryptionMode_); + if (transitEncryptionMode_ != com.google.cloud.redis.v1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaintenancePolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getMaintenancePolicy()); } if (maintenanceSchedule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMaintenanceSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getMaintenanceSchedule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, secondaryIpRange_); } if (replicaCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(31, replicaCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(31, replicaCount_); } for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, nodes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, readEndpoint_); } if (readEndpointPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(34, readEndpointPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(34, readEndpointPort_); } - if (readReplicasMode_ - != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, readReplicasMode_); + if (readReplicasMode_ != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(35, readReplicasMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3174,51 +2827,76 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.Instance)) { return super.equals(obj); } com.google.cloud.redis.v1.Instance other = (com.google.cloud.redis.v1.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getLocationId().equals(other.getLocationId())) return false; - if (!getAlternativeLocationId().equals(other.getAlternativeLocationId())) return false; - if (!getRedisVersion().equals(other.getRedisVersion())) return false; - if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; - if (!getSecondaryIpRange().equals(other.getSecondaryIpRange())) return false; - if (!getHost().equals(other.getHost())) return false; - if (getPort() != other.getPort()) return false; - if (!getCurrentLocationId().equals(other.getCurrentLocationId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getLocationId() + .equals(other.getLocationId())) return false; + if (!getAlternativeLocationId() + .equals(other.getAlternativeLocationId())) return false; + if (!getRedisVersion() + .equals(other.getRedisVersion())) return false; + if (!getReservedIpRange() + .equals(other.getReservedIpRange())) return false; + if (!getSecondaryIpRange() + .equals(other.getSecondaryIpRange())) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (getPort() + != other.getPort()) return false; + if (!getCurrentLocationId() + .equals(other.getCurrentLocationId())) 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 (state_ != other.state_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (!internalGetRedisConfigs().equals( + other.internalGetRedisConfigs())) return false; if (tier_ != other.tier_) return false; - if (getMemorySizeGb() != other.getMemorySizeGb()) return false; - if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; - if (!getPersistenceIamIdentity().equals(other.getPersistenceIamIdentity())) return false; + if (getMemorySizeGb() + != other.getMemorySizeGb()) return false; + if (!getAuthorizedNetwork() + .equals(other.getAuthorizedNetwork())) return false; + if (!getPersistenceIamIdentity() + .equals(other.getPersistenceIamIdentity())) return false; if (connectMode_ != other.connectMode_) return false; - if (getAuthEnabled() != other.getAuthEnabled()) return false; - if (!getServerCaCertsList().equals(other.getServerCaCertsList())) return false; + if (getAuthEnabled() + != other.getAuthEnabled()) return false; + if (!getServerCaCertsList() + .equals(other.getServerCaCertsList())) return false; if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; if (hasMaintenancePolicy()) { - if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; + if (!getMaintenancePolicy() + .equals(other.getMaintenancePolicy())) return false; } if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false; if (hasMaintenanceSchedule()) { - if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) return false; - } - if (getReplicaCount() != other.getReplicaCount()) return false; - if (!getNodesList().equals(other.getNodesList())) return false; - if (!getReadEndpoint().equals(other.getReadEndpoint())) return false; - if (getReadEndpointPort() != other.getReadEndpointPort()) return false; + if (!getMaintenanceSchedule() + .equals(other.getMaintenanceSchedule())) return false; + } + if (getReplicaCount() + != other.getReplicaCount()) return false; + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (!getReadEndpoint() + .equals(other.getReadEndpoint())) return false; + if (getReadEndpointPort() + != other.getReadEndpointPort()) return false; if (readReplicasMode_ != other.readReplicasMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3278,7 +2956,8 @@ public int hashCode() { hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER; hash = (53 * hash) + connectMode_; hash = (37 * hash) + AUTH_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAuthEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAuthEnabled()); if (getServerCaCertsCount() > 0) { hash = (37 * hash) + SERVER_CA_CERTS_FIELD_NUMBER; hash = (53 * hash) + getServerCaCertsList().hashCode(); @@ -3310,150 +2989,144 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.Instance parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.redis.v1.Instance parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.Instance 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.redis.v1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.Instance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Memorystore for Redis instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.Instance) com.google.cloud.redis.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetLabels(); case 16: return internalGetRedisConfigs(); 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 internalGetMutableLabels(); case 16: return internalGetMutableRedisConfigs(); 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.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.Instance.class, - com.google.cloud.redis.v1.Instance.Builder.class); + com.google.cloud.redis.v1.Instance.class, com.google.cloud.redis.v1.Instance.Builder.class); } // Construct using com.google.cloud.redis.v1.Instance.newBuilder() @@ -3461,18 +3134,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getServerCaCertsFieldBuilder(); getNodesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3558,9 +3231,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; } @java.lang.Override @@ -3649,39 +3322,38 @@ public com.google.cloud.redis.v1.Instance buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.Instance) { - return mergeFrom((com.google.cloud.redis.v1.Instance) other); + return mergeFrom((com.google.cloud.redis.v1.Instance)other); } else { super.mergeFrom(other); return this; @@ -3698,7 +3370,8 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); @@ -3740,7 +3413,8 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { statusMessage_ = other.statusMessage_; onChanged(); } - internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); + internalGetMutableRedisConfigs().mergeFrom( + other.internalGetRedisConfigs()); if (other.tier_ != 0) { setTierValue(other.getTierValue()); } @@ -3779,10 +3453,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { serverCaCertsBuilder_ = null; serverCaCerts_ = other.serverCaCerts_; bitField0_ = (bitField0_ & ~0x00000004); - serverCaCertsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServerCaCertsFieldBuilder() - : null; + serverCaCertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServerCaCertsFieldBuilder() : null; } else { serverCaCertsBuilder_.addAllMessages(other.serverCaCerts_); } @@ -3818,10 +3491,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000008); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodesFieldBuilder() - : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -3865,13 +3537,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3884,13 +3553,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -3899,8 +3568,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3913,14 +3580,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -3928,8 +3596,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3942,22 +3608,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3970,18 +3634,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3994,16 +3655,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -4011,20 +3672,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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; @@ -4033,21 +3692,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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 { @@ -4055,81 +3713,75 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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; } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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.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(); @@ -4141,30 +3793,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
@@ -4172,12 +3822,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
@@ -4185,17 +3834,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
@@ -4203,11 +3851,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4215,68 +3864,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - 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 locationId_ = ""; /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4286,13 +3936,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; @@ -4301,8 +3951,6 @@ public java.lang.String getLocationId() { } } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4312,14 +3960,15 @@ public java.lang.String getLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationId_ = b; return b; } else { @@ -4327,8 +3976,6 @@ public com.google.protobuf.ByteString getLocationIdBytes() { } } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4338,22 +3985,20 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId(java.lang.String value) { + public Builder setLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4363,18 +4008,15 @@ public Builder setLocationId(java.lang.String value) {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4384,16 +4026,16 @@ public Builder clearLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -4401,8 +4043,6 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object alternativeLocationId_ = ""; /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4412,13 +4052,13 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alternativeLocationId. */ public java.lang.String getAlternativeLocationId() { java.lang.Object ref = alternativeLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; @@ -4427,8 +4067,6 @@ public java.lang.String getAlternativeLocationId() { } } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4438,14 +4076,15 @@ public java.lang.String getAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alternativeLocationId. */ - public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString + getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -4453,8 +4092,6 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { } } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4464,22 +4101,20 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationId(java.lang.String value) { + public Builder setAlternativeLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + alternativeLocationId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4489,18 +4124,15 @@ public Builder setAlternativeLocationId(java.lang.String value) {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAlternativeLocationId() { - + alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId(); onChanged(); return this; } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4510,16 +4142,16 @@ public Builder clearAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setAlternativeLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alternativeLocationId_ = value; onChanged(); return this; @@ -4527,8 +4159,6 @@ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString valu private java.lang.Object redisVersion_ = ""; /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4540,13 +4170,13 @@ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString valu
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -4555,8 +4185,6 @@ public java.lang.String getRedisVersion() { } } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4568,14 +4196,15 @@ public java.lang.String getRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -4583,8 +4212,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { } } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4596,22 +4223,20 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion(java.lang.String value) { + public Builder setRedisVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4623,18 +4248,15 @@ public Builder setRedisVersion(java.lang.String value) {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4646,16 +4268,16 @@ public Builder clearRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = value; onChanged(); return this; @@ -4663,8 +4285,6 @@ public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reservedIpRange_ = ""; /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4677,13 +4297,13 @@ public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -4692,8 +4312,6 @@ public java.lang.String getReservedIpRange() { } } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4706,14 +4324,15 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -4721,8 +4340,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { } } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4735,22 +4352,20 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange(java.lang.String value) { + public Builder setReservedIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4763,18 +4378,15 @@ public Builder setReservedIpRange(java.lang.String value) {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4787,16 +4399,16 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; @@ -4804,8 +4416,6 @@ public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { private java.lang.Object secondaryIpRange_ = ""; /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4815,13 +4425,13 @@ public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The secondaryIpRange. */ public java.lang.String getSecondaryIpRange() { java.lang.Object ref = secondaryIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; @@ -4830,8 +4440,6 @@ public java.lang.String getSecondaryIpRange() { } } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4841,14 +4449,15 @@ public java.lang.String getSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for secondaryIpRange. */ - public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString + getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -4856,8 +4465,6 @@ public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { } } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4867,22 +4474,20 @@ public com.google.protobuf.ByteString getSecondaryIpRangeBytes() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRange(java.lang.String value) { + public Builder setSecondaryIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secondaryIpRange_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4892,18 +4497,15 @@ public Builder setSecondaryIpRange(java.lang.String value) {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSecondaryIpRange() { - + secondaryIpRange_ = getDefaultInstance().getSecondaryIpRange(); onChanged(); return this; } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4913,16 +4515,16 @@ public Builder clearSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setSecondaryIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryIpRange_ = value; onChanged(); return this; @@ -4930,21 +4532,19 @@ public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) { private java.lang.Object host_ = ""; /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -4953,22 +4553,21 @@ public java.lang.String getHost() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -4976,79 +4575,69 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { + public Builder setHost( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { + public Builder setHostBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_; + private int port_ ; /** - * - * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -5056,36 +4645,30 @@ public int getPort() { return port_; } /** - * - * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -5093,8 +4676,6 @@ public Builder clearPort() { private java.lang.Object currentLocationId_ = ""; /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5102,13 +4683,13 @@ public Builder clearPort() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The currentLocationId. */ public java.lang.String getCurrentLocationId() { java.lang.Object ref = currentLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; @@ -5117,8 +4698,6 @@ public java.lang.String getCurrentLocationId() { } } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5126,14 +4705,15 @@ public java.lang.String getCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for currentLocationId. */ - public com.google.protobuf.ByteString getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString + getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -5141,8 +4721,6 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() { } } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5150,22 +4728,20 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationId(java.lang.String value) { + public Builder setCurrentLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currentLocationId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5173,18 +4749,15 @@ public Builder setCurrentLocationId(java.lang.String value) {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCurrentLocationId() { - + currentLocationId_ = getDefaultInstance().getCurrentLocationId(); onChanged(); return this; } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5192,16 +4765,16 @@ public Builder clearCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setCurrentLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currentLocationId_ = value; onChanged(); return this; @@ -5209,58 +4782,39 @@ public Builder setCurrentLocationIdBytes(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 time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -5276,17 +4830,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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(); @@ -5297,21 +4848,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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; } @@ -5323,15 +4870,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -5345,64 +4888,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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_; @@ -5410,73 +4937,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The current state of this instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.State result = - com.google.cloud.redis.v1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of this instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -5484,26 +4989,21 @@ public Builder setState(com.google.cloud.redis.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of this instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -5511,21 +5011,19 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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; @@ -5534,22 +5032,21 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 { @@ -5557,87 +5054,78 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 com.google.protobuf.MapField redisConfigs_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> redisConfigs_; private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); } return redisConfigs_; } - private com.google.protobuf.MapField - internalGetMutableRedisConfigs() { - onChanged(); - ; + internalGetMutableRedisConfigs() { + onChanged();; if (redisConfigs_ == null) { - redisConfigs_ = - com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); + redisConfigs_ = com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); } if (!redisConfigs_.isMutable()) { redisConfigs_ = redisConfigs_.copy(); @@ -5649,8 +5137,6 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5668,25 +5154,24 @@ public int getRedisConfigsCount() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsRedisConfigs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetRedisConfigs().getMap().containsKey(key); } - /** Use {@link #getRedisConfigsMap()} instead. */ + /** + * Use {@link #getRedisConfigsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5704,16 +5189,14 @@ public java.util.Map getRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5731,21 +5214,19 @@ public java.util.Map getRedisConfigsMap() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5763,15 +5244,15 @@ public java.lang.String getRedisConfigsOrDefault(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + + public java.lang.String getRedisConfigsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5779,12 +5260,11 @@ public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { } public Builder clearRedisConfigs() { - internalGetMutableRedisConfigs().getMutableMap().clear(); + internalGetMutableRedisConfigs().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5802,24 +5282,25 @@ public Builder clearRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableRedisConfigs().getMutableMap().remove(key); + + public Builder removeRedisConfigs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableRedisConfigs().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableRedisConfigs() { + public java.util.Map + getMutableRedisConfigs() { return internalGetMutableRedisConfigs().getMutableMap(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5837,23 +5318,21 @@ public java.util.Map getMutableRedisConfigs(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putRedisConfigs( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableRedisConfigs().getMutableMap().put(key, value); + internalGetMutableRedisConfigs().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5871,83 +5350,63 @@ public Builder putRedisConfigs(java.lang.String key, java.lang.String value) {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllRedisConfigs(java.util.Map values) { - internalGetMutableRedisConfigs().getMutableMap().putAll(values); + + public Builder putAllRedisConfigs( + java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap() + .putAll(values); return this; } private int tier_ = 0; /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The tier. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.Tier result = - com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @param value The tier to set. * @return This builder for chaining. */ @@ -5955,41 +5414,33 @@ public Builder setTier(com.google.cloud.redis.v1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; } - private int memorySizeGb_; + private int memorySizeGb_ ; /** - * - * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeGb. */ @java.lang.Override @@ -5997,36 +5448,30 @@ public int getMemorySizeGb() { return memorySizeGb_; } /** - * - * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The memorySizeGb to set. * @return This builder for chaining. */ public Builder setMemorySizeGb(int value) { - + memorySizeGb_ = value; onChanged(); return this; } /** - * - * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMemorySizeGb() { - + memorySizeGb_ = 0; onChanged(); return this; @@ -6034,8 +5479,6 @@ public Builder clearMemorySizeGb() { private java.lang.Object authorizedNetwork_ = ""; /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6044,13 +5487,13 @@ public Builder clearMemorySizeGb() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authorizedNetwork. */ public java.lang.String getAuthorizedNetwork() { java.lang.Object ref = authorizedNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; @@ -6059,8 +5502,6 @@ public java.lang.String getAuthorizedNetwork() { } } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6069,14 +5510,15 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for authorizedNetwork. */ - public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString + getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -6084,8 +5526,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { } } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6094,22 +5534,20 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetwork(java.lang.String value) { + public Builder setAuthorizedNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizedNetwork_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6118,18 +5556,15 @@ public Builder setAuthorizedNetwork(java.lang.String value) {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6138,16 +5573,16 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setAuthorizedNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizedNetwork_ = value; onChanged(); return this; @@ -6155,8 +5590,6 @@ public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object persistenceIamIdentity_ = ""; /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6165,15 +5598,14 @@ public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The persistenceIamIdentity. */ public java.lang.String getPersistenceIamIdentity() { java.lang.Object ref = persistenceIamIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; @@ -6182,8 +5614,6 @@ public java.lang.String getPersistenceIamIdentity() { } } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6192,16 +5622,16 @@ public java.lang.String getPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for persistenceIamIdentity. */ - public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString + getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -6209,8 +5639,6 @@ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { } } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6219,24 +5647,21 @@ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentity(java.lang.String value) { + public Builder setPersistenceIamIdentity( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + persistenceIamIdentity_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6245,20 +5670,16 @@ public Builder setPersistenceIamIdentity(java.lang.String value) {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPersistenceIamIdentity() { - + persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity(); onChanged(); return this; } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6267,96 +5688,73 @@ public Builder clearPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value) { + public Builder setPersistenceIamIdentityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + persistenceIamIdentity_ = value; onChanged(); return this; } private int connectMode_ = 0; - /** - * - * + /** *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override - public int getConnectModeValue() { + @java.lang.Override public int getConnectModeValue() { return connectMode_; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for connectMode to set. * @return This builder for chaining. */ public Builder setConnectModeValue(int value) { - + connectMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectMode. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ConnectMode result = - com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); + com.google.cloud.redis.v1.Instance.ConnectMode result = com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); return result == null ? com.google.cloud.redis.v1.Instance.ConnectMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @param value The connectMode to set. * @return This builder for chaining. */ @@ -6364,36 +5762,29 @@ public Builder setConnectMode(com.google.cloud.redis.v1.Instance.ConnectMode val if (value == null) { throw new NullPointerException(); } - + connectMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearConnectMode() { - + connectMode_ = 0; onChanged(); return this; } - private boolean authEnabled_; + private boolean authEnabled_ ; /** - * - * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -6401,7 +5792,6 @@ public Builder clearConnectMode() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authEnabled. */ @java.lang.Override @@ -6409,8 +5799,6 @@ public boolean getAuthEnabled() { return authEnabled_; } /** - * - * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -6418,19 +5806,16 @@ public boolean getAuthEnabled() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The authEnabled to set. * @return This builder for chaining. */ public Builder setAuthEnabled(boolean value) { - + authEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -6438,43 +5823,33 @@ public Builder setAuthEnabled(boolean value) {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAuthEnabled() { - + authEnabled_ = false; onChanged(); return this; } private java.util.List serverCaCerts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServerCaCertsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = - new java.util.ArrayList(serverCaCerts_); + serverCaCerts_ = new java.util.ArrayList(serverCaCerts_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.TlsCertificate, - com.google.cloud.redis.v1.TlsCertificate.Builder, - com.google.cloud.redis.v1.TlsCertificateOrBuilder> - serverCaCertsBuilder_; + com.google.cloud.redis.v1.TlsCertificate, com.google.cloud.redis.v1.TlsCertificate.Builder, com.google.cloud.redis.v1.TlsCertificateOrBuilder> serverCaCertsBuilder_; /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getServerCaCertsList() { if (serverCaCertsBuilder_ == null) { @@ -6484,15 +5859,11 @@ public java.util.List getServerCaCerts } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getServerCaCertsCount() { if (serverCaCertsBuilder_ == null) { @@ -6502,15 +5873,11 @@ public int getServerCaCertsCount() { } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -6520,17 +5887,14 @@ public com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index) { } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setServerCaCerts(int index, com.google.cloud.redis.v1.TlsCertificate value) { + public Builder setServerCaCerts( + int index, com.google.cloud.redis.v1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6544,15 +5908,11 @@ public Builder setServerCaCerts(int index, com.google.cloud.redis.v1.TlsCertific return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setServerCaCerts( int index, com.google.cloud.redis.v1.TlsCertificate.Builder builderForValue) { @@ -6566,15 +5926,11 @@ public Builder setServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addServerCaCerts(com.google.cloud.redis.v1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { @@ -6590,17 +5946,14 @@ public Builder addServerCaCerts(com.google.cloud.redis.v1.TlsCertificate value) return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addServerCaCerts(int index, com.google.cloud.redis.v1.TlsCertificate value) { + public Builder addServerCaCerts( + int index, com.google.cloud.redis.v1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6614,15 +5967,11 @@ public Builder addServerCaCerts(int index, com.google.cloud.redis.v1.TlsCertific return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addServerCaCerts( com.google.cloud.redis.v1.TlsCertificate.Builder builderForValue) { @@ -6636,15 +5985,11 @@ public Builder addServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addServerCaCerts( int index, com.google.cloud.redis.v1.TlsCertificate.Builder builderForValue) { @@ -6658,21 +6003,18 @@ public Builder addServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllServerCaCerts( java.lang.Iterable values) { if (serverCaCertsBuilder_ == null) { ensureServerCaCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverCaCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverCaCerts_); onChanged(); } else { serverCaCertsBuilder_.addAllMessages(values); @@ -6680,15 +6022,11 @@ public Builder addAllServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearServerCaCerts() { if (serverCaCertsBuilder_ == null) { @@ -6701,15 +6039,11 @@ public Builder clearServerCaCerts() { return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -6722,50 +6056,39 @@ public Builder removeServerCaCerts(int index) { return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1.TlsCertificate.Builder getServerCaCertsBuilder(int index) { + public com.google.cloud.redis.v1.TlsCertificate.Builder getServerCaCertsBuilder( + int index) { return getServerCaCertsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index) { + public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( + int index) { if (serverCaCertsBuilder_ == null) { - return serverCaCerts_.get(index); - } else { + return serverCaCerts_.get(index); } else { return serverCaCertsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getServerCaCertsOrBuilderList() { + public java.util.List + getServerCaCertsOrBuilderList() { if (serverCaCertsBuilder_ != null) { return serverCaCertsBuilder_.getMessageOrBuilderList(); } else { @@ -6773,62 +6096,45 @@ public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuild } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder() { - return getServerCaCertsFieldBuilder() - .addBuilder(com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); + return getServerCaCertsFieldBuilder().addBuilder( + com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder(int index) { - return getServerCaCertsFieldBuilder() - .addBuilder(index, com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); + public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder( + int index) { + return getServerCaCertsFieldBuilder().addBuilder( + index, com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getServerCaCertsBuilderList() { + public java.util.List + getServerCaCertsBuilderList() { return getServerCaCertsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.TlsCertificate, - com.google.cloud.redis.v1.TlsCertificate.Builder, - com.google.cloud.redis.v1.TlsCertificateOrBuilder> + com.google.cloud.redis.v1.TlsCertificate, com.google.cloud.redis.v1.TlsCertificate.Builder, com.google.cloud.redis.v1.TlsCertificateOrBuilder> getServerCaCertsFieldBuilder() { if (serverCaCertsBuilder_ == null) { - serverCaCertsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.TlsCertificate, - com.google.cloud.redis.v1.TlsCertificate.Builder, - com.google.cloud.redis.v1.TlsCertificateOrBuilder>( + serverCaCertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.TlsCertificate, com.google.cloud.redis.v1.TlsCertificate.Builder, com.google.cloud.redis.v1.TlsCertificateOrBuilder>( serverCaCerts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6840,108 +6146,78 @@ public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder( private int transitEncryptionMode_ = 0; /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override - public int getTransitEncryptionModeValue() { + @java.lang.Override public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for transitEncryptionMode to set. * @return This builder for chaining. */ public Builder setTransitEncryptionModeValue(int value) { - + transitEncryptionMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The transitEncryptionMode. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = - com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); + return result == null ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @param value The transitEncryptionMode to set. * @return This builder for chaining. */ - public Builder setTransitEncryptionMode( - com.google.cloud.redis.v1.Instance.TransitEncryptionMode value) { + public Builder setTransitEncryptionMode(com.google.cloud.redis.v1.Instance.TransitEncryptionMode value) { if (value == null) { throw new NullPointerException(); } - + transitEncryptionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearTransitEncryptionMode() { - + transitEncryptionMode_ = 0; onChanged(); return this; @@ -6949,61 +6225,42 @@ public Builder clearTransitEncryptionMode() { private com.google.cloud.redis.v1.MaintenancePolicy maintenancePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenancePolicy, - com.google.cloud.redis.v1.MaintenancePolicy.Builder, - com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> - maintenancePolicyBuilder_; + com.google.cloud.redis.v1.MaintenancePolicy, com.google.cloud.redis.v1.MaintenancePolicy.Builder, com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maintenancePolicy field is set. */ public boolean hasMaintenancePolicy() { return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return The maintenancePolicy. */ public com.google.cloud.redis.v1.MaintenancePolicy getMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null - ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; + return maintenancePolicy_ == null ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; } else { return maintenancePolicyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { @@ -7019,16 +6276,12 @@ public Builder setMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolicy return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaintenancePolicy( com.google.cloud.redis.v1.MaintenancePolicy.Builder builderForValue) { @@ -7042,24 +6295,18 @@ public Builder setMaintenancePolicy( return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { if (maintenancePolicy_ != null) { maintenancePolicy_ = - com.google.cloud.redis.v1.MaintenancePolicy.newBuilder(maintenancePolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); } else { maintenancePolicy_ = value; } @@ -7071,16 +6318,12 @@ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolic return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { @@ -7094,67 +6337,51 @@ public Builder clearMaintenancePolicy() { return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.redis.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - + onChanged(); return getMaintenancePolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { if (maintenancePolicyBuilder_ != null) { return maintenancePolicyBuilder_.getMessageOrBuilder(); } else { - return maintenancePolicy_ == null - ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; + return maintenancePolicy_ == null ? + com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; } } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenancePolicy, - com.google.cloud.redis.v1.MaintenancePolicy.Builder, - com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> + com.google.cloud.redis.v1.MaintenancePolicy, com.google.cloud.redis.v1.MaintenancePolicy.Builder, com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> getMaintenancePolicyFieldBuilder() { if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenancePolicy, - com.google.cloud.redis.v1.MaintenancePolicy.Builder, - com.google.cloud.redis.v1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.MaintenancePolicy, com.google.cloud.redis.v1.MaintenancePolicy.Builder, com.google.cloud.redis.v1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); maintenancePolicy_ = null; } return maintenancePolicyBuilder_; @@ -7162,61 +6389,42 @@ public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicy private com.google.cloud.redis.v1.MaintenanceSchedule maintenanceSchedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenanceSchedule, - com.google.cloud.redis.v1.MaintenanceSchedule.Builder, - com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> - maintenanceScheduleBuilder_; + com.google.cloud.redis.v1.MaintenanceSchedule, com.google.cloud.redis.v1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> maintenanceScheduleBuilder_; /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maintenanceSchedule field is set. */ public boolean hasMaintenanceSchedule() { return maintenanceScheduleBuilder_ != null || maintenanceSchedule_ != null; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maintenanceSchedule. */ public com.google.cloud.redis.v1.MaintenanceSchedule getMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { - return maintenanceSchedule_ == null - ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() - : maintenanceSchedule_; + return maintenanceSchedule_ == null ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; } else { return maintenanceScheduleBuilder_.getMessage(); } } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { @@ -7232,16 +6440,12 @@ public Builder setMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSched return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaintenanceSchedule( com.google.cloud.redis.v1.MaintenanceSchedule.Builder builderForValue) { @@ -7255,24 +6459,18 @@ public Builder setMaintenanceSchedule( return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { if (maintenanceSchedule_ != null) { maintenanceSchedule_ = - com.google.cloud.redis.v1.MaintenanceSchedule.newBuilder(maintenanceSchedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1.MaintenanceSchedule.newBuilder(maintenanceSchedule_).mergeFrom(value).buildPartial(); } else { maintenanceSchedule_ = value; } @@ -7284,16 +6482,12 @@ public Builder mergeMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSch return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { @@ -7307,77 +6501,58 @@ public Builder clearMaintenanceSchedule() { return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1.MaintenanceSchedule.Builder getMaintenanceScheduleBuilder() { - + onChanged(); return getMaintenanceScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder - getMaintenanceScheduleOrBuilder() { + public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { if (maintenanceScheduleBuilder_ != null) { return maintenanceScheduleBuilder_.getMessageOrBuilder(); } else { - return maintenanceSchedule_ == null - ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() - : maintenanceSchedule_; + return maintenanceSchedule_ == null ? + com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; } } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenanceSchedule, - com.google.cloud.redis.v1.MaintenanceSchedule.Builder, - com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> + com.google.cloud.redis.v1.MaintenanceSchedule, com.google.cloud.redis.v1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> getMaintenanceScheduleFieldBuilder() { if (maintenanceScheduleBuilder_ == null) { - maintenanceScheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenanceSchedule, - com.google.cloud.redis.v1.MaintenanceSchedule.Builder, - com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder>( - getMaintenanceSchedule(), getParentForChildren(), isClean()); + maintenanceScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.MaintenanceSchedule, com.google.cloud.redis.v1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder>( + getMaintenanceSchedule(), + getParentForChildren(), + isClean()); maintenanceSchedule_ = null; } return maintenanceScheduleBuilder_; } - private int replicaCount_; + private int replicaCount_ ; /** - * - * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -7387,7 +6562,6 @@ public com.google.cloud.redis.v1.MaintenanceSchedule.Builder getMaintenanceSched
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ @java.lang.Override @@ -7395,8 +6569,6 @@ public int getReplicaCount() { return replicaCount_; } /** - * - * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -7406,19 +6578,16 @@ public int getReplicaCount() {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The replicaCount to set. * @return This builder for chaining. */ public Builder setReplicaCount(int value) { - + replicaCount_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -7428,42 +6597,33 @@ public Builder setReplicaCount(int value) {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReplicaCount() { - + replicaCount_ = 0; onChanged(); return this; } private java.util.List nodes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.NodeInfo, - com.google.cloud.redis.v1.NodeInfo.Builder, - com.google.cloud.redis.v1.NodeInfoOrBuilder> - nodesBuilder_; + com.google.cloud.redis.v1.NodeInfo, com.google.cloud.redis.v1.NodeInfo.Builder, com.google.cloud.redis.v1.NodeInfoOrBuilder> nodesBuilder_; /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { @@ -7473,15 +6633,11 @@ public java.util.List getNodesList() { } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getNodesCount() { if (nodesBuilder_ == null) { @@ -7491,15 +6647,11 @@ public int getNodesCount() { } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1.NodeInfo getNodes(int index) { if (nodesBuilder_ == null) { @@ -7509,17 +6661,14 @@ public com.google.cloud.redis.v1.NodeInfo getNodes(int index) { } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo value) { + public Builder setNodes( + int index, com.google.cloud.redis.v1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7533,17 +6682,14 @@ public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo value) { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { + public Builder setNodes( + int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); @@ -7554,15 +6700,11 @@ public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder bu return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addNodes(com.google.cloud.redis.v1.NodeInfo value) { if (nodesBuilder_ == null) { @@ -7578,17 +6720,14 @@ public Builder addNodes(com.google.cloud.redis.v1.NodeInfo value) { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo value) { + public Builder addNodes( + int index, com.google.cloud.redis.v1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7602,17 +6741,14 @@ public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo value) { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addNodes(com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { + public Builder addNodes( + com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -7623,17 +6759,14 @@ public Builder addNodes(com.google.cloud.redis.v1.NodeInfo.Builder builderForVal return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { + public Builder addNodes( + int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); @@ -7644,21 +6777,18 @@ public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder bu return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -7666,15 +6796,11 @@ public Builder addAllNodes( return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNodes() { if (nodesBuilder_ == null) { @@ -7687,15 +6813,11 @@ public Builder clearNodes() { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { @@ -7708,50 +6830,39 @@ public Builder removeNodes(int index) { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1.NodeInfo.Builder getNodesBuilder(int index) { + public com.google.cloud.redis.v1.NodeInfo.Builder getNodesBuilder( + int index) { return getNodesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index) { + public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder( + int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { + return nodes_.get(index); } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List + getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -7759,62 +6870,49 @@ public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index) } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder() { - return getNodesFieldBuilder() - .addBuilder(com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); + return getNodesFieldBuilder().addBuilder( + com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder(int index) { - return getNodesFieldBuilder() - .addBuilder(index, com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); + public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getNodesBuilderList() { + public java.util.List + getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.NodeInfo, - com.google.cloud.redis.v1.NodeInfo.Builder, - com.google.cloud.redis.v1.NodeInfoOrBuilder> + com.google.cloud.redis.v1.NodeInfo, com.google.cloud.redis.v1.NodeInfo.Builder, com.google.cloud.redis.v1.NodeInfoOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.NodeInfo, - com.google.cloud.redis.v1.NodeInfo.Builder, - com.google.cloud.redis.v1.NodeInfoOrBuilder>( - nodes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.NodeInfo, com.google.cloud.redis.v1.NodeInfo.Builder, com.google.cloud.redis.v1.NodeInfoOrBuilder>( + nodes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); nodes_ = null; } return nodesBuilder_; @@ -7822,8 +6920,6 @@ public java.util.List getNodesBuilde private java.lang.Object readEndpoint_ = ""; /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7832,13 +6928,13 @@ public java.util.List getNodesBuilde
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpoint. */ public java.lang.String getReadEndpoint() { java.lang.Object ref = readEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; @@ -7847,8 +6943,6 @@ public java.lang.String getReadEndpoint() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7857,14 +6951,15 @@ public java.lang.String getReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for readEndpoint. */ - public com.google.protobuf.ByteString getReadEndpointBytes() { + public com.google.protobuf.ByteString + getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -7872,8 +6967,6 @@ public com.google.protobuf.ByteString getReadEndpointBytes() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7882,22 +6975,20 @@ public com.google.protobuf.ByteString getReadEndpointBytes() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpoint(java.lang.String value) { + public Builder setReadEndpoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + readEndpoint_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7906,18 +6997,15 @@ public Builder setReadEndpoint(java.lang.String value) {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReadEndpoint() { - + readEndpoint_ = getDefaultInstance().getReadEndpoint(); onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7926,32 +7014,29 @@ public Builder clearReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setReadEndpointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + readEndpoint_ = value; onChanged(); return this; } - private int readEndpointPort_; + private int readEndpointPort_ ; /** - * - * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpointPort. */ @java.lang.Override @@ -7959,38 +7044,32 @@ public int getReadEndpointPort() { return readEndpointPort_; } /** - * - * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The readEndpointPort to set. * @return This builder for chaining. */ public Builder setReadEndpointPort(int value) { - + readEndpointPort_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReadEndpointPort() { - + readEndpointPort_ = 0; onChanged(); return this; @@ -7998,75 +7077,51 @@ public Builder clearReadEndpointPort() { private int readReplicasMode_ = 0; /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override - public int getReadReplicasModeValue() { + @java.lang.Override public int getReadReplicasModeValue() { return readReplicasMode_; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for readReplicasMode to set. * @return This builder for chaining. */ public Builder setReadReplicasModeValue(int value) { - + readReplicasMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The readReplicasMode. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ReadReplicasMode result = - com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null - ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @param value The readReplicasMode to set. * @return This builder for chaining. */ @@ -8074,33 +7129,28 @@ public Builder setReadReplicasMode(com.google.cloud.redis.v1.Instance.ReadReplic if (value == null) { throw new NullPointerException(); } - + readReplicasMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearReadReplicasMode() { - + readReplicasMode_ = 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); } @@ -8110,12 +7160,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance) private static final com.google.cloud.redis.v1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.Instance(); } @@ -8124,16 +7174,16 @@ public static com.google.cloud.redis.v1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8148,4 +7198,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java similarity index 68% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java index 6ff75592..59c2409c 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Instance AUTH string details.
  * 
* * Protobuf type {@code google.cloud.redis.v1.InstanceAuthString} */ -public final class InstanceAuthString extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstanceAuthString extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.InstanceAuthString) InstanceAuthStringOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstanceAuthString.newBuilder() to construct. private InstanceAuthString(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstanceAuthString() { authString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstanceAuthString(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstanceAuthString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private InstanceAuthString( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - authString_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authString_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private InstanceAuthString( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InstanceAuthString.class, - com.google.cloud.redis.v1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1.InstanceAuthString.class, com.google.cloud.redis.v1.InstanceAuthString.Builder.class); } public static final int AUTH_STRING_FIELD_NUMBER = 1; private volatile java.lang.Object authString_; /** - * - * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; - * * @return The authString. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getAuthString() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; } } /** - * - * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; - * * @return The bytes for authString. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthStringBytes() { + public com.google.protobuf.ByteString + getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authString_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getAuthStringBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authString_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.InstanceAuthString)) { return super.equals(obj); } - com.google.cloud.redis.v1.InstanceAuthString other = - (com.google.cloud.redis.v1.InstanceAuthString) obj; + com.google.cloud.redis.v1.InstanceAuthString other = (com.google.cloud.redis.v1.InstanceAuthString) obj; - if (!getAuthString().equals(other.getAuthString())) return false; + if (!getAuthString() + .equals(other.getAuthString())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.InstanceAuthString 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.redis.v1.InstanceAuthString parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.InstanceAuthString parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.InstanceAuthString parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.InstanceAuthString parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.InstanceAuthString prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Instance AUTH string details.
    * 
* * Protobuf type {@code google.cloud.redis.v1.InstanceAuthString} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.InstanceAuthString) com.google.cloud.redis.v1.InstanceAuthStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InstanceAuthString.class, - com.google.cloud.redis.v1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1.InstanceAuthString.class, com.google.cloud.redis.v1.InstanceAuthString.Builder.class); } // Construct using com.google.cloud.redis.v1.InstanceAuthString.newBuilder() @@ -354,15 +322,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(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.redis.v1.InstanceAuthString build() { @java.lang.Override public com.google.cloud.redis.v1.InstanceAuthString buildPartial() { - com.google.cloud.redis.v1.InstanceAuthString result = - new com.google.cloud.redis.v1.InstanceAuthString(this); + com.google.cloud.redis.v1.InstanceAuthString result = new com.google.cloud.redis.v1.InstanceAuthString(this); result.authString_ = authString_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.redis.v1.InstanceAuthString buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.InstanceAuthString) { - return mergeFrom((com.google.cloud.redis.v1.InstanceAuthString) other); + return mergeFrom((com.google.cloud.redis.v1.InstanceAuthString)other); } else { super.mergeFrom(other); return this; @@ -480,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object authString_ = ""; /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @return The authString. */ public java.lang.String getAuthString() { java.lang.Object ref = authString_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; @@ -502,21 +467,20 @@ public java.lang.String getAuthString() { } } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @return The bytes for authString. */ - public com.google.protobuf.ByteString getAuthStringBytes() { + public com.google.protobuf.ByteString + getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authString_ = b; return b; } else { @@ -524,68 +488,61 @@ public com.google.protobuf.ByteString getAuthStringBytes() { } } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @param value The authString to set. * @return This builder for chaining. */ - public Builder setAuthString(java.lang.String value) { + public Builder setAuthString( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authString_ = value; onChanged(); return this; } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @return This builder for chaining. */ public Builder clearAuthString() { - + authString_ = getDefaultInstance().getAuthString(); onChanged(); return this; } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @param value The bytes for authString to set. * @return This builder for chaining. */ - public Builder setAuthStringBytes(com.google.protobuf.ByteString value) { + public Builder setAuthStringBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authString_ = 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); } @@ -595,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.InstanceAuthString) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.InstanceAuthString) private static final com.google.cloud.redis.v1.InstanceAuthString DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.InstanceAuthString(); } @@ -609,16 +566,16 @@ public static com.google.cloud.redis.v1.InstanceAuthString getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceAuthString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceAuthString(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceAuthString parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceAuthString(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.InstanceAuthString getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java new file mode 100644 index 00000000..60a131b1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface InstanceAuthStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.InstanceAuthString) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * @return The authString. + */ + java.lang.String getAuthString(); + /** + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * @return The bytes for authString. + */ + com.google.protobuf.ByteString + getAuthStringBytes(); +} diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java similarity index 100% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java similarity index 77% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java index 47651d59..cb958b76 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -38,13 +20,10 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -57,39 +36,32 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -98,31 +70,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - 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(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -131,24 +102,22 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -158,13 +127,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locationId. */ java.lang.String getLocationId(); /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -174,14 +140,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locationId. */ - com.google.protobuf.ByteString getLocationIdBytes(); + com.google.protobuf.ByteString + getLocationIdBytes(); /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -191,13 +155,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alternativeLocationId. */ java.lang.String getAlternativeLocationId(); /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -207,14 +168,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alternativeLocationId. */ - com.google.protobuf.ByteString getAlternativeLocationIdBytes(); + com.google.protobuf.ByteString + getAlternativeLocationIdBytes(); /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -226,13 +185,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -244,14 +200,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString getRedisVersionBytes(); + com.google.protobuf.ByteString + getRedisVersionBytes(); /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -264,13 +218,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -283,14 +234,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString getReservedIpRangeBytes(); + com.google.protobuf.ByteString + getReservedIpRangeBytes(); /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -300,13 +249,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The secondaryIpRange. */ java.lang.String getSecondaryIpRange(); /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -316,54 +262,44 @@ java.lang.String getLabelsOrDefault(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for secondaryIpRange. */ - com.google.protobuf.ByteString getSecondaryIpRangeBytes(); + com.google.protobuf.ByteString + getSecondaryIpRangeBytes(); /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); /** - * - * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ int getPort(); /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -371,13 +307,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The currentLocationId. */ java.lang.String getCurrentLocationId(); /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -385,108 +318,80 @@ java.lang.String getLabelsOrDefault(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for currentLocationId. */ - com.google.protobuf.ByteString getCurrentLocationIdBytes(); + com.google.protobuf.ByteString + getCurrentLocationIdBytes(); /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The current state of this instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of this instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.redis.v1.Instance.State getState(); /** - * - * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -504,13 +409,10 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ int getRedisConfigsCount(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -528,16 +430,17 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsRedisConfigs( + java.lang.String key); + /** + * Use {@link #getRedisConfigsMap()} instead. */ - boolean containsRedisConfigs(java.lang.String key); - /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Deprecated - java.util.Map getRedisConfigs(); + java.util.Map + getRedisConfigs(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -555,13 +458,11 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getRedisConfigsMap(); + java.util.Map + getRedisConfigsMap(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -579,18 +480,15 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getRedisConfigsOrDefault( +java.lang.String getRedisConfigsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -608,54 +506,42 @@ java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getRedisConfigsOrThrow(java.lang.String key); + + java.lang.String getRedisConfigsOrThrow( + java.lang.String key); /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The tier. */ com.google.cloud.redis.v1.Instance.Tier getTier(); /** - * - * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeGb. */ int getMemorySizeGb(); /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -664,13 +550,10 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -679,14 +562,12 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString + getAuthorizedNetworkBytes(); /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -696,13 +577,10 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The persistenceIamIdentity. */ java.lang.String getPersistenceIamIdentity(); /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -712,45 +590,33 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for persistenceIamIdentity. */ - com.google.protobuf.ByteString getPersistenceIamIdentityBytes(); + com.google.protobuf.ByteString + getPersistenceIamIdentityBytes(); /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for connectMode. */ int getConnectModeValue(); /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectMode. */ com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode(); /** - * - * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -758,195 +624,136 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authEnabled. */ boolean getAuthEnabled(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getServerCaCertsList(); + java.util.List + getServerCaCertsList(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getServerCaCertsCount(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getServerCaCertsOrBuilderList(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index); + com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( + int index); /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for transitEncryptionMode. */ int getTransitEncryptionModeValue(); /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The transitEncryptionMode. */ com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode(); /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maintenancePolicy field is set. */ boolean hasMaintenancePolicy(); /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return The maintenancePolicy. */ com.google.cloud.redis.v1.MaintenancePolicy getMaintenancePolicy(); /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maintenanceSchedule field is set. */ boolean hasMaintenanceSchedule(); /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maintenanceSchedule. */ com.google.cloud.redis.v1.MaintenanceSchedule getMaintenanceSchedule(); /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder(); /** - * - * *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -956,75 +763,55 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ int getReplicaCount(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getNodesList(); + java.util.List + getNodesList(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.redis.v1.NodeInfo getNodes(int index); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getNodesCount(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getNodesOrBuilderList(); + java.util.List + getNodesOrBuilderList(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index); + com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder( + int index); /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -1033,13 +820,10 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpoint. */ java.lang.String getReadEndpoint(); /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -1048,50 +832,37 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for readEndpoint. */ - com.google.protobuf.ByteString getReadEndpointBytes(); + com.google.protobuf.ByteString + getReadEndpointBytes(); /** - * - * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpointPort. */ int getReadEndpointPort(); /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for readReplicasMode. */ int getReadReplicasModeValue(); /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The readReplicasMode. */ com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode(); diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java similarity index 71% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java index 2a627e01..cb57d9a0 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListInstancesRequest( 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; - } - 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) { @@ -104,43 +85,36 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesRequest.class, - com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1.ListInstancesRequest.class, com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 @@ -149,33 +123,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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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 { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -198,7 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,15 +178,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -226,30 +192,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; } } /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * 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 { @@ -258,7 +224,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +235,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -306,17 +273,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.redis.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.ListInstancesRequest other = - (com.google.cloud.redis.v1.ListInstancesRequest) obj; + com.google.cloud.redis.v1.ListInstancesRequest other = (com.google.cloud.redis.v1.ListInstancesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,127 +308,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesRequest 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.redis.v1.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ListInstancesRequest) com.google.cloud.redis.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesRequest.class, - com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1.ListInstancesRequest.class, com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.ListInstancesRequest.newBuilder() @@ -467,15 +427,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(); @@ -489,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -510,8 +471,7 @@ public com.google.cloud.redis.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.redis.v1.ListInstancesRequest buildPartial() { - com.google.cloud.redis.v1.ListInstancesRequest result = - new com.google.cloud.redis.v1.ListInstancesRequest(this); + com.google.cloud.redis.v1.ListInstancesRequest result = new com.google.cloud.redis.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -523,39 +483,38 @@ public com.google.cloud.redis.v1.ListInstancesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.redis.v1.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.redis.v1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -606,24 +565,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.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; @@ -632,25 +587,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.google.api.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 { @@ -658,82 +610,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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_ ; /** - * - * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -744,7 +681,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -752,8 +688,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -764,19 +698,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; } /** - * - * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -787,11 +718,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -799,21 +729,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; @@ -822,22 +750,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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 { @@ -845,71 +772,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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); } @@ -919,12 +839,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesRequest) private static final com.google.cloud.redis.v1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesRequest(); } @@ -933,16 +853,16 @@ public static com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java index c1e36250..765de276 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java @@ -1,64 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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(); /** - * - * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -69,35 +42,29 @@ public interface ListInstancesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java similarity index 80% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java index b5fa83b4..5b84de1f 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add( - input.readMessage( - com.google.cloud.redis.v1.Instance.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instances_.add( + input.readMessage(com.google.cloud.redis.v1.Instance.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) { @@ -115,7 +94,8 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -127,27 +107,22 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesResponse.class, - com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1.ListInstancesResponse.class, com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -168,8 +143,6 @@ public java.util.List getInstancesList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -186,13 +159,11 @@ public java.util.List getInstancesList() {
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -213,8 +184,6 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -235,8 +204,6 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -253,22 +220,20 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+  public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
+      int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -277,30 +242,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; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -311,42 +276,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. */ @@ -354,23 +311,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; @@ -382,7 +336,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 < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -402,7 +357,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -423,17 +379,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.redis.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.redis.v1.ListInstancesResponse other = - (com.google.cloud.redis.v1.ListInstancesResponse) obj; + com.google.cloud.redis.v1.ListInstancesResponse other = (com.google.cloud.redis.v1.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) 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; } @@ -460,127 +418,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesResponse 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.redis.v1.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ListInstancesResponse) com.google.cloud.redis.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesResponse.class, - com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1.ListInstancesResponse.class, com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.redis.v1.ListInstancesResponse.newBuilder() @@ -588,17 +537,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) { getInstancesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -616,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -637,8 +586,7 @@ public com.google.cloud.redis.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.redis.v1.ListInstancesResponse buildPartial() { - com.google.cloud.redis.v1.ListInstancesResponse result = - new com.google.cloud.redis.v1.ListInstancesResponse(this); + com.google.cloud.redis.v1.ListInstancesResponse result = new com.google.cloud.redis.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -663,39 +611,38 @@ public com.google.cloud.redis.v1.ListInstancesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.redis.v1.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.redis.v1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -703,8 +650,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.ListInstancesResponse other) { - if (other == com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -723,10 +669,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1.ListInstancesResponse other) instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -774,28 +719,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.Instance, - com.google.cloud.redis.v1.Instance.Builder, - com.google.cloud.redis.v1.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -819,8 +757,6 @@ public java.util.List getInstancesList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -844,8 +780,6 @@ public int getInstancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -869,8 +803,6 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -886,7 +818,8 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public Builder setInstances(int index, com.google.cloud.redis.v1.Instance value) {
+    public Builder setInstances(
+        int index, com.google.cloud.redis.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -900,8 +833,6 @@ public Builder setInstances(int index, com.google.cloud.redis.v1.Instance value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -929,8 +860,6 @@ public Builder setInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -960,8 +889,6 @@ public Builder addInstances(com.google.cloud.redis.v1.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -977,7 +904,8 @@ public Builder addInstances(com.google.cloud.redis.v1.Instance value) {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public Builder addInstances(int index, com.google.cloud.redis.v1.Instance value) {
+    public Builder addInstances(
+        int index, com.google.cloud.redis.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -991,8 +919,6 @@ public Builder addInstances(int index, com.google.cloud.redis.v1.Instance value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1008,7 +934,8 @@ public Builder addInstances(int index, com.google.cloud.redis.v1.Instance value)
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public Builder addInstances(com.google.cloud.redis.v1.Instance.Builder builderForValue) {
+    public Builder addInstances(
+        com.google.cloud.redis.v1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -1019,8 +946,6 @@ public Builder addInstances(com.google.cloud.redis.v1.Instance.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1048,8 +973,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1069,7 +992,8 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -1077,8 +1001,6 @@ public Builder addAllInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1105,8 +1027,6 @@ public Builder clearInstances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1133,8 +1053,6 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1150,12 +1068,11 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(int index) {
+    public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(
+        int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1171,16 +1088,14 @@ public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(int index)
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+    public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
+        int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);
-      } else {
+        return instances_.get(index);  } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1196,8 +1111,8 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int ind
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesOrBuilderList() {
+    public java.util.List 
+         getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1205,8 +1120,6 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1223,12 +1136,10 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int ind
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
     public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder()
-          .addBuilder(com.google.cloud.redis.v1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder().addBuilder(
+          com.google.cloud.redis.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1244,13 +1155,12 @@ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(int index) {
-      return getInstancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.redis.v1.Instance.getDefaultInstance());
+    public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(
+        int index) {
+      return getInstancesFieldBuilder().addBuilder(
+          index, com.google.cloud.redis.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1266,22 +1176,20 @@ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(int index)
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public java.util.List getInstancesBuilderList() {
+    public java.util.List 
+         getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.redis.v1.Instance,
-            com.google.cloud.redis.v1.Instance.Builder,
-            com.google.cloud.redis.v1.InstanceOrBuilder>
+        com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> 
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.redis.v1.Instance,
-                com.google.cloud.redis.v1.Instance.Builder,
-                com.google.cloud.redis.v1.InstanceOrBuilder>(
-                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>(
+                instances_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1289,21 +1197,19 @@ public java.util.List getInstancesBu
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1312,22 +1218,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1335,115 +1240,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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. */ @@ -1451,90 +1339,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() { @@ -1544,30 +1422,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); } @@ -1577,12 +1453,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesResponse) private static final com.google.cloud.redis.v1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesResponse(); } @@ -1591,16 +1467,16 @@ public static com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1615,4 +1491,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java similarity index 83% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java index ed73fccc..6dc4774a 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -41,10 +23,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
-  java.util.List getInstancesList();
+  java.util.List 
+      getInstancesList();
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -62,8 +43,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.redis.v1.Instance getInstances(int index);
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -81,8 +60,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getInstancesCount();
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -98,10 +75,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
-  java.util.List getInstancesOrBuilderList();
+  java.util.List 
+      getInstancesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -117,83 +93,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
-  com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int index);
+  com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java similarity index 61% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java index 8d4b360b..71502136 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * This location metadata represents additional configuration options for a
  * given location where a Redis instance may be created. All fields are output
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.LocationMetadata}
  */
-public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LocationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.LocationMetadata)
     LocationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LocationMetadata.newBuilder() to construct.
   private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LocationMetadata() {}
+  private LocationMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LocationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LocationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,31 +56,26 @@ private LocationMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                availableZones_ =
-                    com.google.protobuf.MapField.newMapField(
-                        AvailableZonesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  availableZones__ =
-                      input.readMessage(
-                          AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              availableZones_
-                  .getMutableMap()
-                  .put(availableZones__.getKey(), availableZones__.getValue());
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              availableZones_ = com.google.protobuf.MapField.newMapField(
+                  AvailableZonesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            availableZones__ = input.readMessage(
+                AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            availableZones_.getMutableMap().put(
+                availableZones__.getKey(), availableZones__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,60 +83,54 @@ private LocationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_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 1:
         return internalGetAvailableZones();
       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.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.LocationMetadata.class,
-            com.google.cloud.redis.v1.LocationMetadata.Builder.class);
+            com.google.cloud.redis.v1.LocationMetadata.class, com.google.cloud.redis.v1.LocationMetadata.Builder.class);
   }
 
   public static final int AVAILABLE_ZONES_FIELD_NUMBER = 1;
-
   private static final class AvailableZonesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.redis.v1.ZoneMetadata>
-        defaultEntry =
+        java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> defaultEntry =
             com.google.protobuf.MapEntry
-                .newDefaultInstance(
-                    com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-                        .internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor,
-                    com.google.protobuf.WireFormat.FieldType.STRING,
-                    "",
-                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                    com.google.cloud.redis.v1.ZoneMetadata.getDefaultInstance());
-  }
-
+            .newDefaultInstance(
+                com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.redis.v1.ZoneMetadata.getDefaultInstance());
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> availableZones_;
   private com.google.protobuf.MapField
-      availableZones_;
-
-  private com.google.protobuf.MapField
-      internalGetAvailableZones() {
+  internalGetAvailableZones() {
     if (availableZones_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           AvailableZonesDefaultEntryHolder.defaultEntry);
@@ -169,8 +142,6 @@ public int getAvailableZonesCount() {
     return internalGetAvailableZones().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -178,27 +149,24 @@ public int getAvailableZonesCount() {
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsAvailableZones(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAvailableZones( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAvailableZones().getMap().containsKey(key); } - /** Use {@link #getAvailableZonesMap()} instead. */ + /** + * Use {@link #getAvailableZonesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAvailableZones() { + public java.util.Map getAvailableZones() { return getAvailableZonesMap(); } /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -206,18 +174,14 @@ public boolean containsAvailableZones(java.lang.String key) {
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getAvailableZonesMap() { + + public java.util.Map getAvailableZonesMap() { return internalGetAvailableZones().getMap(); } /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -225,23 +189,19 @@ public boolean containsAvailableZones(java.lang.String key) {
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, com.google.cloud.redis.v1.ZoneMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.redis.v1.ZoneMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -249,15 +209,13 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -267,7 +225,6 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,9 +236,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAvailableZones(), AvailableZonesDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAvailableZones(), + AvailableZonesDefaultEntryHolder.defaultEntry, + 1); unknownFields.writeTo(output); } @@ -291,16 +253,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetAvailableZones().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetAvailableZones().getMap().entrySet()) { com.google.protobuf.MapEntry - availableZones__ = - AvailableZonesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, availableZones__); + availableZones__ = AvailableZonesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, availableZones__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -310,15 +271,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.redis.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.redis.v1.LocationMetadata other = - (com.google.cloud.redis.v1.LocationMetadata) obj; + com.google.cloud.redis.v1.LocationMetadata other = (com.google.cloud.redis.v1.LocationMetadata) obj; - if (!internalGetAvailableZones().equals(other.internalGetAvailableZones())) return false; + if (!internalGetAvailableZones().equals( + other.internalGetAvailableZones())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,104 +300,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.LocationMetadata 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.redis.v1.LocationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * This location metadata represents additional configuration options for a
    * given location where a Redis instance may be created. All fields are output
@@ -446,43 +400,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1.LocationMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.LocationMetadata)
       com.google.cloud.redis.v1.LocationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetAvailableZones();
         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 1:
           return internalGetMutableAvailableZones();
         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.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.LocationMetadata.class,
-              com.google.cloud.redis.v1.LocationMetadata.Builder.class);
+              com.google.cloud.redis.v1.LocationMetadata.class, com.google.cloud.redis.v1.LocationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.LocationMetadata.newBuilder()
@@ -490,15 +444,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();
@@ -507,9 +462,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -528,8 +483,7 @@ public com.google.cloud.redis.v1.LocationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.LocationMetadata buildPartial() {
-      com.google.cloud.redis.v1.LocationMetadata result =
-          new com.google.cloud.redis.v1.LocationMetadata(this);
+      com.google.cloud.redis.v1.LocationMetadata result = new com.google.cloud.redis.v1.LocationMetadata(this);
       int from_bitField0_ = bitField0_;
       result.availableZones_ = internalGetAvailableZones();
       result.availableZones_.makeImmutable();
@@ -541,39 +495,38 @@ public com.google.cloud.redis.v1.LocationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.LocationMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1.LocationMetadata) other);
+        return mergeFrom((com.google.cloud.redis.v1.LocationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -582,7 +535,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.redis.v1.LocationMetadata other) {
       if (other == com.google.cloud.redis.v1.LocationMetadata.getDefaultInstance()) return this;
-      internalGetMutableAvailableZones().mergeFrom(other.internalGetAvailableZones());
+      internalGetMutableAvailableZones().mergeFrom(
+          other.internalGetAvailableZones());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -611,28 +565,24 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
+    private com.google.protobuf.MapField<
+        java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> availableZones_;
     private com.google.protobuf.MapField
-        availableZones_;
-
-    private com.google.protobuf.MapField
-        internalGetAvailableZones() {
+    internalGetAvailableZones() {
       if (availableZones_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       return availableZones_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableAvailableZones() {
-      onChanged();
-      ;
+    internalGetMutableAvailableZones() {
+      onChanged();;
       if (availableZones_ == null) {
-        availableZones_ =
-            com.google.protobuf.MapField.newMapField(AvailableZonesDefaultEntryHolder.defaultEntry);
+        availableZones_ = com.google.protobuf.MapField.newMapField(
+            AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       if (!availableZones_.isMutable()) {
         availableZones_ = availableZones_.copy();
@@ -644,8 +594,6 @@ public int getAvailableZonesCount() {
       return internalGetAvailableZones().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -653,27 +601,24 @@ public int getAvailableZonesCount() {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsAvailableZones(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAvailableZones( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAvailableZones().getMap().containsKey(key); } - /** Use {@link #getAvailableZonesMap()} instead. */ + /** + * Use {@link #getAvailableZonesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAvailableZones() { + public java.util.Map getAvailableZones() { return getAvailableZonesMap(); } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -681,18 +626,14 @@ public boolean containsAvailableZones(java.lang.String key) {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getAvailableZonesMap() { + + public java.util.Map getAvailableZonesMap() { return internalGetAvailableZones().getMap(); } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -700,23 +641,19 @@ public boolean containsAvailableZones(java.lang.String key) {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, com.google.cloud.redis.v1.ZoneMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.redis.v1.ZoneMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -724,15 +661,13 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -742,12 +677,11 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang } public Builder clearAvailableZones() { - internalGetMutableAvailableZones().getMutableMap().clear(); + internalGetMutableAvailableZones().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -755,26 +689,25 @@ public Builder clearAvailableZones() {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeAvailableZones(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAvailableZones().getMutableMap().remove(key); + + public Builder removeAvailableZones( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAvailableZones().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableAvailableZones() { + getMutableAvailableZones() { return internalGetMutableAvailableZones().getMutableMap(); } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -782,25 +715,21 @@ public Builder removeAvailableZones(java.lang.String key) {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder putAvailableZones( - java.lang.String key, com.google.cloud.redis.v1.ZoneMetadata value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.redis.v1.ZoneMetadata value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableAvailableZones().getMutableMap().put(key, value); + internalGetMutableAvailableZones().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -808,18 +737,18 @@ public Builder putAvailableZones(
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + public Builder putAllAvailableZones( java.util.Map values) { - internalGetMutableAvailableZones().getMutableMap().putAll(values); + internalGetMutableAvailableZones().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); } @@ -829,12 +758,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.LocationMetadata) private static final com.google.cloud.redis.v1.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.LocationMetadata(); } @@ -843,16 +772,16 @@ public static com.google.cloud.redis.v1.LocationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,4 +796,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java similarity index 54% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java index bc4a7231..c9196e36 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface LocationMetadataOrBuilder - extends +public interface LocationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -33,14 +15,10 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getAvailableZonesCount(); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -48,17 +26,17 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsAvailableZones( + java.lang.String key); + /** + * Use {@link #getAvailableZonesMap()} instead. */ - boolean containsAvailableZones(java.lang.String key); - /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Deprecated - java.util.Map getAvailableZones(); + java.util.Map + getAvailableZones(); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -66,14 +44,11 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.Map getAvailableZonesMap(); + java.util.Map + getAvailableZonesMap(); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -81,19 +56,15 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ - com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( +com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.redis.v1.ZoneMetadata defaultValue); +com.google.cloud.redis.v1.ZoneMetadata defaultValue); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -101,9 +72,9 @@ com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key); + + com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java similarity index 100% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java index 45744e00..ba19d058 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Maintenance policy for an instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1.MaintenancePolicy} */ -public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MaintenancePolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.MaintenancePolicy) MaintenancePolicyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MaintenancePolicy.newBuilder() to construct. private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MaintenancePolicy() { description_ = ""; weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private MaintenancePolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MaintenancePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MaintenancePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,63 +55,54 @@ private MaintenancePolicy( 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 (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = 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(); - description_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - weeklyMaintenanceWindow_.add( - input.readMessage( - com.google.cloud.redis.v1.WeeklyMaintenanceWindow.parser(), - extensionRegistry)); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + weeklyMaintenanceWindow_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + weeklyMaintenanceWindow_.add( + input.readMessage(com.google.cloud.redis.v1.WeeklyMaintenanceWindow.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,7 +110,8 @@ private MaintenancePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); @@ -145,34 +120,27 @@ private MaintenancePolicy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.MaintenancePolicy.class, - com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1.MaintenancePolicy.class, com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the policy 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 @@ -180,15 +148,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the policy 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 @@ -196,14 +160,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the policy 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() { @@ -213,15 +174,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -229,15 +186,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -245,14 +198,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -262,15 +212,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -279,30 +226,30 @@ 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; } } /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -311,99 +258,76 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER = 4; - private java.util.List - weeklyMaintenanceWindow_; + private java.util.List weeklyMaintenanceWindow_; /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getWeeklyMaintenanceWindowList() { + public java.util.List getWeeklyMaintenanceWindowList() { return weeklyMaintenanceWindow_; } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getWeeklyMaintenanceWindowOrBuilderList() { return weeklyMaintenanceWindow_; } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getWeeklyMaintenanceWindowCount() { return weeklyMaintenanceWindow_.size(); } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { return weeklyMaintenanceWindow_.get(index); } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder - getWeeklyMaintenanceWindowOrBuilder(int index) { + public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( + int index) { return weeklyMaintenanceWindow_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -438,18 +363,19 @@ 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 (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, weeklyMaintenanceWindow_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, weeklyMaintenanceWindow_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -459,25 +385,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.redis.v1.MaintenancePolicy)) { return super.equals(obj); } - com.google.cloud.redis.v1.MaintenancePolicy other = - (com.google.cloud.redis.v1.MaintenancePolicy) obj; + com.google.cloud.redis.v1.MaintenancePolicy other = (com.google.cloud.redis.v1.MaintenancePolicy) obj; 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 (!getDescription().equals(other.getDescription())) return false; - if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList())) - return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getWeeklyMaintenanceWindowList() + .equals(other.getWeeklyMaintenanceWindowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,127 +436,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenancePolicy 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.redis.v1.MaintenancePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.MaintenancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.MaintenancePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Maintenance policy for an instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1.MaintenancePolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.MaintenancePolicy) com.google.cloud.redis.v1.MaintenancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.MaintenancePolicy.class, - com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1.MaintenancePolicy.class, com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); } // Construct using com.google.cloud.redis.v1.MaintenancePolicy.newBuilder() @@ -636,17 +555,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) { getWeeklyMaintenanceWindowFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -674,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; } @java.lang.Override @@ -695,8 +614,7 @@ public com.google.cloud.redis.v1.MaintenancePolicy build() { @java.lang.Override public com.google.cloud.redis.v1.MaintenancePolicy buildPartial() { - com.google.cloud.redis.v1.MaintenancePolicy result = - new com.google.cloud.redis.v1.MaintenancePolicy(this); + com.google.cloud.redis.v1.MaintenancePolicy result = new com.google.cloud.redis.v1.MaintenancePolicy(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -711,8 +629,7 @@ public com.google.cloud.redis.v1.MaintenancePolicy buildPartial() { result.description_ = description_; if (weeklyMaintenanceWindowBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = - java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); bitField0_ = (bitField0_ & ~0x00000001); } result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindow_; @@ -727,39 +644,38 @@ public com.google.cloud.redis.v1.MaintenancePolicy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.MaintenancePolicy) { - return mergeFrom((com.google.cloud.redis.v1.MaintenancePolicy) other); + return mergeFrom((com.google.cloud.redis.v1.MaintenancePolicy)other); } else { super.mergeFrom(other); return this; @@ -796,10 +712,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1.MaintenancePolicy other) { weeklyMaintenanceWindowBuilder_ = null; weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; bitField0_ = (bitField0_ & ~0x00000001); - weeklyMaintenanceWindowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWeeklyMaintenanceWindowFieldBuilder() - : null; + weeklyMaintenanceWindowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWeeklyMaintenanceWindowFieldBuilder() : null; } else { weeklyMaintenanceWindowBuilder_.addAllMessages(other.weeklyMaintenanceWindow_); } @@ -833,63 +748,43 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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) { @@ -905,17 +800,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy 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(); @@ -926,21 +818,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the policy 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; } @@ -952,15 +840,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy 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) { @@ -974,64 +858,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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_; @@ -1039,58 +907,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 time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1106,17 +955,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.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(); @@ -1127,21 +973,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.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; } @@ -1153,15 +995,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1175,64 +1013,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> 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_; @@ -1240,21 +1062,19 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1263,22 +1083,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1286,102 +1105,84 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - private java.util.List - weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); - + private java.util.List weeklyMaintenanceWindow_ = + java.util.Collections.emptyList(); private void ensureWeeklyMaintenanceWindowIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = - new java.util.ArrayList( - weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = new java.util.ArrayList(weeklyMaintenanceWindow_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.WeeklyMaintenanceWindow, - com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, - com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> - weeklyMaintenanceWindowBuilder_; + com.google.cloud.redis.v1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> weeklyMaintenanceWindowBuilder_; /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getWeeklyMaintenanceWindowList() { + public java.util.List getWeeklyMaintenanceWindowList() { if (weeklyMaintenanceWindowBuilder_ == null) { return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); } else { @@ -1389,17 +1190,13 @@ private void ensureWeeklyMaintenanceWindowIsMutable() { } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public int getWeeklyMaintenanceWindowCount() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1409,17 +1206,13 @@ public int getWeeklyMaintenanceWindowCount() { } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1429,17 +1222,13 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWin } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { @@ -1456,17 +1245,13 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1480,20 +1265,15 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addWeeklyMaintenanceWindow( - com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { + public Builder addWeeklyMaintenanceWindow(com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { if (weeklyMaintenanceWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1507,17 +1287,13 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { @@ -1534,17 +1310,13 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addWeeklyMaintenanceWindow( com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1558,17 +1330,13 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1582,23 +1350,20 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllWeeklyMaintenanceWindow( java.lang.Iterable values) { if (weeklyMaintenanceWindowBuilder_ == null) { ensureWeeklyMaintenanceWindowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeklyMaintenanceWindow_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, weeklyMaintenanceWindow_); onChanged(); } else { weeklyMaintenanceWindowBuilder_.addAllMessages(values); @@ -1606,17 +1371,13 @@ public Builder addAllWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearWeeklyMaintenanceWindow() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1629,17 +1390,13 @@ public Builder clearWeeklyMaintenanceWindow() { return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeWeeklyMaintenanceWindow(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1652,58 +1409,45 @@ public Builder removeWeeklyMaintenanceWindow(int index) { return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder - getWeeklyMaintenanceWindowBuilder(int index) { + public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder getWeeklyMaintenanceWindowBuilder( + int index) { return getWeeklyMaintenanceWindowFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder - getWeeklyMaintenanceWindowOrBuilder(int index) { + public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( + int index) { if (weeklyMaintenanceWindowBuilder_ == null) { - return weeklyMaintenanceWindow_.get(index); - } else { + return weeklyMaintenanceWindow_.get(index); } else { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getWeeklyMaintenanceWindowOrBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowOrBuilderList() { if (weeklyMaintenanceWindowBuilder_ != null) { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilderList(); } else { @@ -1711,71 +1455,51 @@ public Builder removeWeeklyMaintenanceWindow(int index) { } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder - addWeeklyMaintenanceWindowBuilder() { - return getWeeklyMaintenanceWindowFieldBuilder() - .addBuilder(com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder() { + return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( + com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder - addWeeklyMaintenanceWindowBuilder(int index) { - return getWeeklyMaintenanceWindowFieldBuilder() - .addBuilder( - index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder( + int index) { + return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( + index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getWeeklyMaintenanceWindowBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowBuilderList() { return getWeeklyMaintenanceWindowFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.WeeklyMaintenanceWindow, - com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, - com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> + com.google.cloud.redis.v1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> getWeeklyMaintenanceWindowFieldBuilder() { if (weeklyMaintenanceWindowBuilder_ == null) { - weeklyMaintenanceWindowBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.WeeklyMaintenanceWindow, - com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, - com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder>( + weeklyMaintenanceWindowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder>( weeklyMaintenanceWindow_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1784,9 +1508,9 @@ public Builder removeWeeklyMaintenanceWindow(int index) { } return weeklyMaintenanceWindowBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1796,12 +1520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.MaintenancePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.MaintenancePolicy) private static final com.google.cloud.redis.v1.MaintenancePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.MaintenancePolicy(); } @@ -1810,16 +1534,16 @@ public static com.google.cloud.redis.v1.MaintenancePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenancePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenancePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1834,4 +1558,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.MaintenancePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java index 575bcf00..c57ef74c 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java @@ -1,201 +1,138 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface MaintenancePolicyOrBuilder - extends +public interface MaintenancePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.MaintenancePolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time when the policy 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 when the policy 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 when the policy 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 when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getWeeklyMaintenanceWindowList(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getWeeklyMaintenanceWindowCount(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getWeeklyMaintenanceWindowOrBuilderList(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( int index); diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java similarity index 67% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java index e6626a35..f550043d 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
  * populated.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.MaintenanceSchedule}
  */
-public final class MaintenanceSchedule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MaintenanceSchedule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.MaintenanceSchedule)
     MaintenanceScheduleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MaintenanceSchedule.newBuilder() to construct.
   private MaintenanceSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MaintenanceSchedule() {}
+  private MaintenanceSchedule() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MaintenanceSchedule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MaintenanceSchedule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,63 +53,57 @@ private MaintenanceSchedule(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
+            }
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = 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;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 24:
-            {
-              canReschedule_ = input.readBool();
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (scheduleDeadlineTime_ != null) {
-                subBuilder = scheduleDeadlineTime_.toBuilder();
-              }
-              scheduleDeadlineTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scheduleDeadlineTime_);
-                scheduleDeadlineTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 24: {
+
+            canReschedule_ = input.readBool();
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (scheduleDeadlineTime_ != null) {
+              subBuilder = scheduleDeadlineTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            scheduleDeadlineTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scheduleDeadlineTime_);
+              scheduleDeadlineTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -133,40 +111,34 @@ private MaintenanceSchedule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.MaintenanceSchedule.class,
-            com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
+            com.google.cloud.redis.v1.MaintenanceSchedule.class, com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
   }
 
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
-   *
-   *
    * 
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -174,15 +146,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -190,14 +158,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -207,15 +172,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -223,15 +184,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -239,14 +196,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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() { @@ -256,38 +210,29 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int CAN_RESCHEDULE_FIELD_NUMBER = 3; private boolean canReschedule_; /** - * - * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1/cloud_redis.proto;l=576 + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1/cloud_redis.proto;l=576 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated - public boolean getCanReschedule() { + @java.lang.Deprecated public boolean getCanReschedule() { return canReschedule_; } public static final int SCHEDULE_DEADLINE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp scheduleDeadlineTime_; /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the scheduleDeadlineTime field is set. */ @java.lang.Override @@ -295,36 +240,25 @@ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTime_ != null; } /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The scheduleDeadlineTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleDeadlineTime() { - return scheduleDeadlineTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; } /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { @@ -332,7 +266,6 @@ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -367,17 +301,20 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (canReschedule_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, canReschedule_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, canReschedule_); } if (scheduleDeadlineTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScheduleDeadlineTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getScheduleDeadlineTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -387,26 +324,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.redis.v1.MaintenanceSchedule)) { return super.equals(obj); } - com.google.cloud.redis.v1.MaintenanceSchedule other = - (com.google.cloud.redis.v1.MaintenanceSchedule) obj; + com.google.cloud.redis.v1.MaintenanceSchedule other = (com.google.cloud.redis.v1.MaintenanceSchedule) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (getCanReschedule() != other.getCanReschedule()) return false; + if (getCanReschedule() + != other.getCanReschedule()) return false; if (hasScheduleDeadlineTime() != other.hasScheduleDeadlineTime()) return false; if (hasScheduleDeadlineTime()) { - if (!getScheduleDeadlineTime().equals(other.getScheduleDeadlineTime())) return false; + if (!getScheduleDeadlineTime() + .equals(other.getScheduleDeadlineTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -428,7 +368,8 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + CAN_RESCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanReschedule()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanReschedule()); if (hasScheduleDeadlineTime()) { hash = (37 * hash) + SCHEDULE_DEADLINE_TIME_FIELD_NUMBER; hash = (53 * hash) + getScheduleDeadlineTime().hashCode(); @@ -438,104 +379,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenanceSchedule 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.redis.v1.MaintenanceSchedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.MaintenanceSchedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.MaintenanceSchedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.MaintenanceSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
    * populated.
@@ -543,23 +477,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1.MaintenanceSchedule}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.MaintenanceSchedule)
       com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.MaintenanceSchedule.class,
-              com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
+              com.google.cloud.redis.v1.MaintenanceSchedule.class, com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.MaintenanceSchedule.newBuilder()
@@ -567,15 +499,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();
@@ -603,9 +536,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
@@ -624,8 +557,7 @@ public com.google.cloud.redis.v1.MaintenanceSchedule build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.MaintenanceSchedule buildPartial() {
-      com.google.cloud.redis.v1.MaintenanceSchedule result =
-          new com.google.cloud.redis.v1.MaintenanceSchedule(this);
+      com.google.cloud.redis.v1.MaintenanceSchedule result = new com.google.cloud.redis.v1.MaintenanceSchedule(this);
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
       } else {
@@ -650,39 +582,38 @@ public com.google.cloud.redis.v1.MaintenanceSchedule buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.MaintenanceSchedule) {
-        return mergeFrom((com.google.cloud.redis.v1.MaintenanceSchedule) other);
+        return mergeFrom((com.google.cloud.redis.v1.MaintenanceSchedule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -734,35 +665,24 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        startTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -773,14 +693,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -796,16 +713,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -816,20 +731,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -841,14 +753,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -862,59 +771,48 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -922,35 +820,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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() { @@ -961,14 +848,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -984,16 +868,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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(); @@ -1004,20 +886,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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; } @@ -1029,14 +908,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -1050,120 +926,97 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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_; } - private boolean canReschedule_; + private boolean canReschedule_ ; /** - * - * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1/cloud_redis.proto;l=576 + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1/cloud_redis.proto;l=576 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated - public boolean getCanReschedule() { + @java.lang.Deprecated public boolean getCanReschedule() { return canReschedule_; } /** - * - * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1/cloud_redis.proto;l=576 + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1/cloud_redis.proto;l=576 * @param value The canReschedule to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCanReschedule(boolean value) { - + @java.lang.Deprecated public Builder setCanReschedule(boolean value) { + canReschedule_ = value; onChanged(); return this; } /** - * - * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1/cloud_redis.proto;l=576 + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1/cloud_redis.proto;l=576 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearCanReschedule() { - + @java.lang.Deprecated public Builder clearCanReschedule() { + canReschedule_ = false; onChanged(); return this; @@ -1171,61 +1024,42 @@ public Builder clearCanReschedule() { private com.google.protobuf.Timestamp scheduleDeadlineTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleDeadlineTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleDeadlineTimeBuilder_; /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the scheduleDeadlineTime field is set. */ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTimeBuilder_ != null || scheduleDeadlineTime_ != null; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The scheduleDeadlineTime. */ public com.google.protobuf.Timestamp getScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { - return scheduleDeadlineTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; } else { return scheduleDeadlineTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1241,18 +1075,15 @@ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleDeadlineTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleDeadlineTimeBuilder_ == null) { scheduleDeadlineTime_ = builderForValue.build(); onChanged(); @@ -1263,24 +1094,18 @@ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp.Builder bui return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { if (scheduleDeadlineTime_ != null) { scheduleDeadlineTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_).mergeFrom(value).buildPartial(); } else { scheduleDeadlineTime_ = value; } @@ -1292,16 +1117,12 @@ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1315,74 +1136,58 @@ public Builder clearScheduleDeadlineTime() { return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getScheduleDeadlineTimeBuilder() { - + onChanged(); return getScheduleDeadlineTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { if (scheduleDeadlineTimeBuilder_ != null) { return scheduleDeadlineTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleDeadlineTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; } } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.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> getScheduleDeadlineTimeFieldBuilder() { if (scheduleDeadlineTimeBuilder_ == null) { - scheduleDeadlineTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleDeadlineTime(), getParentForChildren(), isClean()); + scheduleDeadlineTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduleDeadlineTime(), + getParentForChildren(), + isClean()); scheduleDeadlineTime_ = null; } return scheduleDeadlineTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1392,12 +1197,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.MaintenanceSchedule) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.MaintenanceSchedule) private static final com.google.cloud.redis.v1.MaintenanceSchedule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.MaintenanceSchedule(); } @@ -1406,16 +1211,16 @@ public static com.google.cloud.redis.v1.MaintenanceSchedule getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceSchedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenanceSchedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceSchedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1430,4 +1235,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.MaintenanceSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java similarity index 64% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java index 5be9680e..86bb0393 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java @@ -1,161 +1,105 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface MaintenanceScheduleOrBuilder - extends +public interface MaintenanceScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.MaintenanceSchedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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(); /** - * - * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1/cloud_redis.proto;l=576 + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1/cloud_redis.proto;l=576 * @return The canReschedule. */ - @java.lang.Deprecated - boolean getCanReschedule(); + @java.lang.Deprecated boolean getCanReschedule(); /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the scheduleDeadlineTime field is set. */ boolean hasScheduleDeadlineTime(); /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The scheduleDeadlineTime. */ com.google.protobuf.Timestamp getScheduleDeadlineTime(); /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java similarity index 70% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java index 3b78009b..729e470f 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Node specific properties.
  * 
* * Protobuf type {@code google.cloud.redis.v1.NodeInfo} */ -public final class NodeInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NodeInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.NodeInfo) NodeInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NodeInfo.newBuilder() to construct. private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NodeInfo() { id_ = ""; zone_ = ""; @@ -44,15 +26,16 @@ private NodeInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NodeInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private NodeInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - zone_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + zone_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private NodeInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_NodeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.NodeInfo.class, - com.google.cloud.redis.v1.NodeInfo.Builder.class); + com.google.cloud.redis.v1.NodeInfo.class, com.google.cloud.redis.v1.NodeInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ @java.lang.Override @@ -189,29 +162,29 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getZoneBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -262,15 +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.redis.v1.NodeInfo)) { return super.equals(obj); } com.google.cloud.redis.v1.NodeInfo other = (com.google.cloud.redis.v1.NodeInfo) obj; - if (!getId().equals(other.getId())) return false; - if (!getZone().equals(other.getZone())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getZone() + .equals(other.getZone())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,126 +266,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.NodeInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.NodeInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.NodeInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.NodeInfo parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.redis.v1.NodeInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.NodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.NodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.NodeInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.NodeInfo 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.redis.v1.NodeInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.NodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.NodeInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.NodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.NodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.NodeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Node specific properties.
    * 
* * Protobuf type {@code google.cloud.redis.v1.NodeInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.NodeInfo) com.google.cloud.redis.v1.NodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_NodeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.NodeInfo.class, - com.google.cloud.redis.v1.NodeInfo.Builder.class); + com.google.cloud.redis.v1.NodeInfo.class, com.google.cloud.redis.v1.NodeInfo.Builder.class); } // Construct using com.google.cloud.redis.v1.NodeInfo.newBuilder() @@ -418,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(); @@ -438,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_NodeInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_descriptor; } @java.lang.Override @@ -470,39 +438,38 @@ public com.google.cloud.redis.v1.NodeInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.NodeInfo) { - return mergeFrom((com.google.cloud.redis.v1.NodeInfo) other); + return mergeFrom((com.google.cloud.redis.v1.NodeInfo)other); } else { super.mergeFrom(other); return this; @@ -550,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -572,21 +537,20 @@ public java.lang.String getId() { } } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -594,61 +558,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -656,20 +613,18 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object zone_ = ""; /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -678,21 +633,20 @@ public java.lang.String getZone() { } } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for zone. */ - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -700,68 +654,61 @@ public com.google.protobuf.ByteString getZoneBytes() { } } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone(java.lang.String value) { + public Builder setZone( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes(com.google.protobuf.ByteString value) { + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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); } @@ -771,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.NodeInfo) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.NodeInfo) private static final com.google.cloud.redis.v1.NodeInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.NodeInfo(); } @@ -785,16 +732,16 @@ public static com.google.cloud.redis.v1.NodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.NodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java similarity index 58% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java index 0949b29f..2d60fde9 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface NodeInfoOrBuilder - extends +public interface NodeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.NodeInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ java.lang.String getZone(); /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for zone. */ - com.google.protobuf.ByteString getZoneBytes(); + com.google.protobuf.ByteString + getZoneBytes(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java index 666a6b76..ceef6588 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Represents the v1 metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,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,76 +56,68 @@ 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(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,39 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OperationMetadata.class, - com.google.cloud.redis.v1.OperationMetadata.Builder.class); + com.google.cloud.redis.v1.OperationMetadata.class, com.google.cloud.redis.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -190,14 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -205,8 +172,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Creation timestamp.
    * 
@@ -221,14 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -236,14 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -251,8 +210,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * End timestamp.
    * 
@@ -267,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Operation target.
    * 
* * string target = 3; - * * @return The target. */ @java.lang.Override @@ -283,29 +237,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; } } /** - * - * *
    * Operation target.
    * 
* * string target = 3; - * * @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 { @@ -316,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Operation verb.
    * 
* * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -332,29 +283,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; } } /** - * - * *
    * Operation verb.
    * 
* * string verb = 4; - * * @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 { @@ -365,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Operation status details.
    * 
* * string status_detail = 5; - * * @return The statusDetail. */ @java.lang.Override @@ -381,29 +329,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Operation status details.
    * 
* * string status_detail = 5; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -414,14 +362,11 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; - * * @return The cancelRequested. */ @java.lang.Override @@ -432,14 +377,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * API version.
    * 
* * string api_version = 7; - * * @return The apiVersion. */ @java.lang.Override @@ -448,29 +390,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; } } /** - * - * *
    * API version.
    * 
* * string api_version = 7; - * * @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 { @@ -479,7 +421,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -491,7 +432,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()); } @@ -523,10 +465,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -538,7 +482,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -551,27 +496,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.redis.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.redis.v1.OperationMetadata other = - (com.google.cloud.redis.v1.OperationMetadata) obj; + com.google.cloud.redis.v1.OperationMetadata other = (com.google.cloud.redis.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) 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 (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -598,7 +549,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -606,127 +558,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.OperationMetadata 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.redis.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the v1 metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.OperationMetadata) com.google.cloud.redis.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OperationMetadata.class, - com.google.cloud.redis.v1.OperationMetadata.Builder.class); + com.google.cloud.redis.v1.OperationMetadata.class, com.google.cloud.redis.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.redis.v1.OperationMetadata.newBuilder() @@ -734,15 +677,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(); @@ -772,9 +716,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -793,8 +737,7 @@ public com.google.cloud.redis.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.redis.v1.OperationMetadata buildPartial() { - com.google.cloud.redis.v1.OperationMetadata result = - new com.google.cloud.redis.v1.OperationMetadata(this); + com.google.cloud.redis.v1.OperationMetadata result = new com.google.cloud.redis.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -818,39 +761,38 @@ public com.google.cloud.redis.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.redis.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.redis.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -915,47 +857,34 @@ 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_; /** - * - * *
      * Creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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(); } } /** - * - * *
      * Creation timestamp.
      * 
@@ -976,15 +905,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - 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(); @@ -995,8 +923,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Creation timestamp.
      * 
@@ -1007,7 +933,7 @@ 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; } @@ -1019,8 +945,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Creation timestamp.
      * 
@@ -1039,8 +963,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Creation timestamp.
      * 
@@ -1048,13 +970,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Creation timestamp.
      * 
@@ -1065,14 +985,11 @@ 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_; } } /** - * - * *
      * Creation timestamp.
      * 
@@ -1080,17 +997,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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_; @@ -1098,33 +1012,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_; /** - * - * *
      * End timestamp.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * End timestamp.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1135,8 +1040,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * End timestamp.
      * 
@@ -1157,15 +1060,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * End timestamp.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - 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(); @@ -1176,8 +1078,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * End timestamp.
      * 
@@ -1188,7 +1088,7 @@ 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; } @@ -1200,8 +1100,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * End timestamp.
      * 
@@ -1220,8 +1118,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * End timestamp.
      * 
@@ -1229,13 +1125,11 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * End timestamp.
      * 
@@ -1246,12 +1140,11 @@ 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_; } } /** - * - * *
      * End timestamp.
      * 
@@ -1259,17 +1152,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1277,20 +1167,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Operation target.
      * 
* * string target = 3; - * * @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; @@ -1299,21 +1187,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Operation target.
      * 
* * string target = 3; - * * @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 { @@ -1321,61 +1208,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Operation target.
      * 
* * string target = 3; - * * @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; } /** - * - * *
      * Operation target.
      * 
* * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Operation target.
      * 
* * string target = 3; - * * @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; @@ -1383,20 +1263,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Operation verb.
      * 
* * string verb = 4; - * * @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; @@ -1405,21 +1283,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Operation verb.
      * 
* * string verb = 4; - * * @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 { @@ -1427,61 +1304,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Operation verb.
      * 
* * string verb = 4; - * * @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; } /** - * - * *
      * Operation verb.
      * 
* * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Operation verb.
      * 
* * string verb = 4; - * * @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; @@ -1489,20 +1359,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Operation status details.
      * 
* * string status_detail = 5; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1511,21 +1379,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Operation status details.
      * 
* * string status_detail = 5; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1533,76 +1400,66 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Operation status details.
      * 
* * string status_detail = 5; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Operation status details.
      * 
* * string status_detail = 5; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Operation status details.
      * 
* * string status_detail = 5; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; - * * @return The cancelRequested. */ @java.lang.Override @@ -1610,36 +1467,30 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1647,20 +1498,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * API version.
      * 
* * string api_version = 7; - * * @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; @@ -1669,21 +1518,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * API version.
      * 
* * string api_version = 7; - * * @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 { @@ -1691,68 +1539,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * API version.
      * 
* * string api_version = 7; - * * @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; } /** - * - * *
      * API version.
      * 
* * string api_version = 7; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * API version.
      * 
* * string api_version = 7; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1762,12 +1603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OperationMetadata) private static final com.google.cloud.redis.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.OperationMetadata(); } @@ -1776,16 +1617,16 @@ public static com.google.cloud.redis.v1.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + 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; @@ -1800,4 +1641,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java index 4797c12f..e357d8df 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Creation timestamp.
    * 
@@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * End timestamp.
    * 
@@ -94,115 +62,92 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Operation target.
    * 
* * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Operation target.
    * 
* * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Operation verb.
    * 
* * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Operation verb.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Operation status details.
    * 
* * string status_detail = 5; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Operation status details.
    * 
* * string status_detail = 5; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * API version.
    * 
* * string api_version = 7; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * API version.
    * 
* * string api_version = 7; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java similarity index 70% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java index 7c0d00c5..4fac4561 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * The output content
  * 
* * Protobuf type {@code google.cloud.redis.v1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,27 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.redis.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.redis.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.redis.v1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.redis.v1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage(com.google.cloud.redis.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +80,34 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OutputConfig.class, - com.google.cloud.redis.v1.OutputConfig.Builder.class); + com.google.cloud.redis.v1.OutputConfig.class, com.google.cloud.redis.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -146,34 +123,29 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -181,26 +153,21 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; + return (com.google.cloud.redis.v1.GcsDestination) destination_; } return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
@@ -210,13 +177,12 @@ public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; + return (com.google.cloud.redis.v1.GcsDestination) destination_; } return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,7 +194,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1.GcsDestination) destination_); } @@ -242,9 +209,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.redis.v1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.redis.v1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -254,7 +220,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.OutputConfig)) { return super.equals(obj); @@ -264,7 +230,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -293,127 +260,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.OutputConfig 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.redis.v1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 output content
    * 
* * Protobuf type {@code google.cloud.redis.v1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.OutputConfig) com.google.cloud.redis.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OutputConfig.class, - com.google.cloud.redis.v1.OutputConfig.Builder.class); + com.google.cloud.redis.v1.OutputConfig.class, com.google.cloud.redis.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1.OutputConfig.newBuilder() @@ -421,15 +379,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(); @@ -439,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_descriptor; } @java.lang.Override @@ -460,8 +419,7 @@ public com.google.cloud.redis.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.redis.v1.OutputConfig buildPartial() { - com.google.cloud.redis.v1.OutputConfig result = - new com.google.cloud.redis.v1.OutputConfig(this); + com.google.cloud.redis.v1.OutputConfig result = new com.google.cloud.redis.v1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -478,39 +436,38 @@ public com.google.cloud.redis.v1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.OutputConfig) { - return mergeFrom((com.google.cloud.redis.v1.OutputConfig) other); + return mergeFrom((com.google.cloud.redis.v1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -520,15 +477,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1.OutputConfig other) { if (other == com.google.cloud.redis.v1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -558,12 +513,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -573,20 +528,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, - com.google.cloud.redis.v1.GcsDestination.Builder, - com.google.cloud.redis.v1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.redis.v1.GcsDestination, com.google.cloud.redis.v1.GcsDestination.Builder, com.google.cloud.redis.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -594,14 +544,11 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -619,8 +566,6 @@ public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -641,8 +586,6 @@ public Builder setGcsDestination(com.google.cloud.redis.v1.GcsDestination value) return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -661,8 +604,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -671,13 +612,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.redis.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.redis.v1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.redis.v1.GcsDestination.newBuilder( - (com.google.cloud.redis.v1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.redis.v1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.redis.v1.GcsDestination.newBuilder((com.google.cloud.redis.v1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -693,8 +631,6 @@ public Builder mergeGcsDestination(com.google.cloud.redis.v1.GcsDestination valu return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -718,8 +654,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -730,8 +664,6 @@ public com.google.cloud.redis.v1.GcsDestination.Builder getGcsDestinationBuilder return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -750,8 +682,6 @@ public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -759,32 +689,26 @@ public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, - com.google.cloud.redis.v1.GcsDestination.Builder, - com.google.cloud.redis.v1.GcsDestinationOrBuilder> + com.google.cloud.redis.v1.GcsDestination, com.google.cloud.redis.v1.GcsDestination.Builder, com.google.cloud.redis.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, - com.google.cloud.redis.v1.GcsDestination.Builder, - com.google.cloud.redis.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.GcsDestination, com.google.cloud.redis.v1.GcsDestination.Builder, com.google.cloud.redis.v1.GcsDestinationOrBuilder>( (com.google.cloud.redis.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OutputConfig) private static final com.google.cloud.redis.v1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.OutputConfig(); } @@ -808,16 +732,16 @@ public static com.google.cloud.redis.v1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java similarity index 62% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java index 08053456..c77497ec 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.redis.v1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java similarity index 66% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java index a026f486..cdc7ae52 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [RescheduleMaintenance][google.cloud.redis.v1.CloudRedis.RescheduleMaintenance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.RescheduleMaintenanceRequest} */ -public final class RescheduleMaintenanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RescheduleMaintenanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.RescheduleMaintenanceRequest) RescheduleMaintenanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RescheduleMaintenanceRequest.newBuilder() to construct. private RescheduleMaintenanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RescheduleMaintenanceRequest() { name_ = ""; rescheduleType_ = 0; @@ -44,15 +26,16 @@ private RescheduleMaintenanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RescheduleMaintenanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RescheduleMaintenanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private RescheduleMaintenanceRequest( 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: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - rescheduleType_ = rawValue; - break; + rescheduleType_ = rawValue; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = 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) { @@ -114,41 +93,36 @@ private RescheduleMaintenanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); } /** - * - * *
    * Reschedule options.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType} */ - public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { + public enum RescheduleType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -157,8 +131,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ RESCHEDULE_TYPE_UNSPECIFIED(0), /** - * - * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -167,8 +139,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ IMMEDIATE(1), /** - * - * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -178,8 +148,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum {
      */
     NEXT_AVAILABLE_WINDOW(2),
     /**
-     *
-     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -191,8 +159,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -201,8 +167,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -211,8 +175,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMMEDIATE_VALUE = 1; /** - * - * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -222,8 +184,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NEXT_AVAILABLE_WINDOW_VALUE = 2;
     /**
-     *
-     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -232,6 +192,7 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPECIFIC_TIME_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -256,53 +217,50 @@ public static RescheduleType valueOf(int value) { */ public static RescheduleType forNumber(int value) { switch (value) { - case 0: - return RESCHEDULE_TYPE_UNSPECIFIED; - case 1: - return IMMEDIATE; - case 2: - return NEXT_AVAILABLE_WINDOW; - case 3: - return SPECIFIC_TIME; - default: - return null; + case 0: return RESCHEDULE_TYPE_UNSPECIFIED; + case 1: return IMMEDIATE; + case 2: return NEXT_AVAILABLE_WINDOW; + case 3: return SPECIFIC_TIME; + 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< + RescheduleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RescheduleType findValueByNumber(int number) { + return RescheduleType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RescheduleType findValueByNumber(int number) { - return RescheduleType.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.redis.v1.RescheduleMaintenanceRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDescriptor().getEnumTypes().get(0); } private static final RescheduleType[] VALUES = values(); - public static RescheduleType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RescheduleType 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; @@ -322,18 +280,13 @@ private RescheduleType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -342,33 +295,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -379,60 +330,40 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int RESCHEDULE_TYPE_FIELD_NUMBER = 2; private int rescheduleType_; /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override - public int getRescheduleTypeValue() { + @java.lang.Override public int getRescheduleTypeValue() { return rescheduleType_; } /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The rescheduleType. */ - @java.lang.Override - public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { + @java.lang.Override public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf( - rescheduleType_); - return result == null - ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); + return result == null ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; } public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -440,36 +371,27 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { @@ -477,7 +399,6 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -489,14 +410,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (rescheduleType_ - != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType - .RESCHEDULE_TYPE_UNSPECIFIED - .getNumber()) { + if (rescheduleType_ != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, rescheduleType_); } if (scheduleTime_ != null) { @@ -514,14 +433,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (rescheduleType_ - != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType - .RESCHEDULE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rescheduleType_); + if (rescheduleType_ != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, rescheduleType_); } if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getScheduleTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -531,19 +449,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.redis.v1.RescheduleMaintenanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.RescheduleMaintenanceRequest other = - (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) obj; + com.google.cloud.redis.v1.RescheduleMaintenanceRequest other = (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (rescheduleType_ != other.rescheduleType_) return false; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -570,127 +489,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.redis.v1.RescheduleMaintenanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [RescheduleMaintenance][google.cloud.redis.v1.CloudRedis.RescheduleMaintenance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.RescheduleMaintenanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.RescheduleMaintenanceRequest) com.google.cloud.redis.v1.RescheduleMaintenanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.RescheduleMaintenanceRequest.newBuilder() @@ -698,15 +607,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(); @@ -724,9 +634,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override @@ -745,8 +655,7 @@ public com.google.cloud.redis.v1.RescheduleMaintenanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.RescheduleMaintenanceRequest buildPartial() { - com.google.cloud.redis.v1.RescheduleMaintenanceRequest result = - new com.google.cloud.redis.v1.RescheduleMaintenanceRequest(this); + com.google.cloud.redis.v1.RescheduleMaintenanceRequest result = new com.google.cloud.redis.v1.RescheduleMaintenanceRequest(this); result.name_ = name_; result.rescheduleType_ = rescheduleType_; if (scheduleTimeBuilder_ == null) { @@ -762,39 +671,38 @@ public com.google.cloud.redis.v1.RescheduleMaintenanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.RescheduleMaintenanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.RescheduleMaintenanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.RescheduleMaintenanceRequest)other); } else { super.mergeFrom(other); return this; @@ -802,8 +710,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.RescheduleMaintenanceRequest other) { - if (other == com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -833,8 +740,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -846,24 +752,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -872,25 +774,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -898,73 +797,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -972,105 +858,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int rescheduleType_ = 0; /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override - public int getRescheduleTypeValue() { + @java.lang.Override public int getRescheduleTypeValue() { return rescheduleType_; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for rescheduleType to set. * @return This builder for chaining. */ public Builder setRescheduleTypeValue(int value) { - + rescheduleType_ = value; onChanged(); return this; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The rescheduleType. */ @java.lang.Override - public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType - getRescheduleType() { + public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf( - rescheduleType_); - return result == null - ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED - : result; + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); + return result == null ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The rescheduleType to set. * @return This builder for chaining. */ - public Builder setRescheduleType( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType value) { + public Builder setRescheduleType(com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType value) { if (value == null) { throw new NullPointerException(); } - + rescheduleType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearRescheduleType() { - + rescheduleType_ = 0; onChanged(); return this; @@ -1078,61 +932,45 @@ public Builder clearRescheduleType() { private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { @@ -1148,18 +986,16 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleTimeBuilder_ == null) { scheduleTime_ = builderForValue.build(); onChanged(); @@ -1170,24 +1006,19 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { if (scheduleTime_ != null) { scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial(); } else { scheduleTime_ = value; } @@ -1199,16 +1030,13 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearScheduleTime() { if (scheduleTimeBuilder_ == null) { @@ -1222,74 +1050,61 @@ public Builder clearScheduleTime() { return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - + onChanged(); return getScheduleTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { if (scheduleTimeBuilder_ != null) { return scheduleTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getScheduleTimeFieldBuilder() { if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); + scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), + getParentForChildren(), + isClean()); scheduleTime_ = null; } return scheduleTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1299,12 +1114,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.RescheduleMaintenanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.RescheduleMaintenanceRequest) private static final com.google.cloud.redis.v1.RescheduleMaintenanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.RescheduleMaintenanceRequest(); } @@ -1313,16 +1128,16 @@ public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RescheduleMaintenanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RescheduleMaintenanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RescheduleMaintenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RescheduleMaintenanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1337,4 +1152,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1.RescheduleMaintenanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java index 0ec63873..269ebc55 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java @@ -1,131 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface RescheduleMaintenanceRequestOrBuilder - extends +public interface RescheduleMaintenanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.RescheduleMaintenanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for rescheduleType. */ int getRescheduleTypeValue(); /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The rescheduleType. */ com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType(); /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java similarity index 69% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java index e09005e5..afd5fd52 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * TlsCertificate Resource
  * 
* * Protobuf type {@code google.cloud.redis.v1.TlsCertificate} */ -public final class TlsCertificate extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TlsCertificate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.TlsCertificate) TlsCertificateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TlsCertificate.newBuilder() to construct. private TlsCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TlsCertificate() { serialNumber_ = ""; cert_ = ""; @@ -45,15 +27,16 @@ private TlsCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TlsCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TlsCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,64 +55,57 @@ private TlsCertificate( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - serialNumber_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + serialNumber_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - cert_ = s; - break; - } - case 26: - { - 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; + cert_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); - } - expireTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - sha1Fingerprint_ = s; - break; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + sha1Fingerprint_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,39 +113,34 @@ private TlsCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.TlsCertificate.class, - com.google.cloud.redis.v1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1.TlsCertificate.class, com.google.cloud.redis.v1.TlsCertificate.Builder.class); } public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; private volatile java.lang.Object serialNumber_; /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The serialNumber. */ @java.lang.Override @@ -178,29 +149,29 @@ public java.lang.String getSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; } } /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The bytes for serialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getSerialNumberBytes() { + public com.google.protobuf.ByteString + getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -211,14 +182,11 @@ public com.google.protobuf.ByteString getSerialNumberBytes() { public static final int CERT_FIELD_NUMBER = 2; private volatile java.lang.Object cert_; /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The cert. */ @java.lang.Override @@ -227,29 +195,29 @@ public java.lang.String getCert() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; } } /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The bytes for cert. */ @java.lang.Override - public com.google.protobuf.ByteString getCertBytes() { + public com.google.protobuf.ByteString + getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cert_ = b; return b; } else { @@ -260,17 +228,13 @@ public com.google.protobuf.ByteString getCertBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -278,17 +242,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -296,16 +256,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -315,17 +272,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -333,17 +286,13 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -351,16 +300,13 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -370,14 +316,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int SHA1_FINGERPRINT_FIELD_NUMBER = 5; private volatile java.lang.Object sha1Fingerprint_; /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The sha1Fingerprint. */ @java.lang.Override @@ -386,29 +329,29 @@ public java.lang.String getSha1Fingerprint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; } } /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The bytes for sha1Fingerprint. */ @java.lang.Override - public com.google.protobuf.ByteString getSha1FingerprintBytes() { + public com.google.protobuf.ByteString + getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -417,7 +360,6 @@ public com.google.protobuf.ByteString getSha1FingerprintBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -429,7 +371,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serialNumber_); } @@ -461,10 +404,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cert_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha1Fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sha1Fingerprint_); @@ -477,24 +422,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.redis.v1.TlsCertificate)) { return super.equals(obj); } com.google.cloud.redis.v1.TlsCertificate other = (com.google.cloud.redis.v1.TlsCertificate) obj; - if (!getSerialNumber().equals(other.getSerialNumber())) return false; - if (!getCert().equals(other.getCert())) return false; + if (!getSerialNumber() + .equals(other.getSerialNumber())) return false; + if (!getCert() + .equals(other.getCert())) 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 (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } - if (!getSha1Fingerprint().equals(other.getSha1Fingerprint())) return false; + if (!getSha1Fingerprint() + .equals(other.getSha1Fingerprint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -525,127 +475,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.TlsCertificate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.TlsCertificate 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.redis.v1.TlsCertificate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.TlsCertificate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.TlsCertificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.TlsCertificate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.TlsCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TlsCertificate Resource
    * 
* * Protobuf type {@code google.cloud.redis.v1.TlsCertificate} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.TlsCertificate) com.google.cloud.redis.v1.TlsCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.TlsCertificate.class, - com.google.cloud.redis.v1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1.TlsCertificate.class, com.google.cloud.redis.v1.TlsCertificate.Builder.class); } // Construct using com.google.cloud.redis.v1.TlsCertificate.newBuilder() @@ -653,15 +594,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(); @@ -687,9 +629,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; } @java.lang.Override @@ -708,8 +650,7 @@ public com.google.cloud.redis.v1.TlsCertificate build() { @java.lang.Override public com.google.cloud.redis.v1.TlsCertificate buildPartial() { - com.google.cloud.redis.v1.TlsCertificate result = - new com.google.cloud.redis.v1.TlsCertificate(this); + com.google.cloud.redis.v1.TlsCertificate result = new com.google.cloud.redis.v1.TlsCertificate(this); result.serialNumber_ = serialNumber_; result.cert_ = cert_; if (createTimeBuilder_ == null) { @@ -731,39 +672,38 @@ public com.google.cloud.redis.v1.TlsCertificate buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.TlsCertificate) { - return mergeFrom((com.google.cloud.redis.v1.TlsCertificate) other); + return mergeFrom((com.google.cloud.redis.v1.TlsCertificate)other); } else { super.mergeFrom(other); return this; @@ -821,20 +761,18 @@ public Builder mergeFrom( private java.lang.Object serialNumber_ = ""; /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @return The serialNumber. */ public java.lang.String getSerialNumber() { java.lang.Object ref = serialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; @@ -843,21 +781,20 @@ public java.lang.String getSerialNumber() { } } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @return The bytes for serialNumber. */ - public com.google.protobuf.ByteString getSerialNumberBytes() { + public com.google.protobuf.ByteString + getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -865,61 +802,54 @@ public com.google.protobuf.ByteString getSerialNumberBytes() { } } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @param value The serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumber(java.lang.String value) { + public Builder setSerialNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serialNumber_ = value; onChanged(); return this; } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @return This builder for chaining. */ public Builder clearSerialNumber() { - + serialNumber_ = getDefaultInstance().getSerialNumber(); onChanged(); return this; } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @param value The bytes for serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { + public Builder setSerialNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serialNumber_ = value; onChanged(); return this; @@ -927,20 +857,18 @@ public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { private java.lang.Object cert_ = ""; /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @return The cert. */ public java.lang.String getCert() { java.lang.Object ref = cert_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; @@ -949,21 +877,20 @@ public java.lang.String getCert() { } } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @return The bytes for cert. */ - public com.google.protobuf.ByteString getCertBytes() { + public com.google.protobuf.ByteString + getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cert_ = b; return b; } else { @@ -971,61 +898,54 @@ public com.google.protobuf.ByteString getCertBytes() { } } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @param value The cert to set. * @return This builder for chaining. */ - public Builder setCert(java.lang.String value) { + public Builder setCert( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cert_ = value; onChanged(); return this; } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @return This builder for chaining. */ public Builder clearCert() { - + cert_ = getDefaultInstance().getCert(); onChanged(); return this; } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @param value The bytes for cert to set. * @return This builder for chaining. */ - public Builder setCertBytes(com.google.protobuf.ByteString value) { + public Builder setCertBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cert_ = value; onChanged(); return this; @@ -1033,64 +953,45 @@ public Builder setCertBytes(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 time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1106,19 +1007,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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(); @@ -1129,23 +1027,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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; } @@ -1157,17 +1051,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1181,70 +1071,54 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -1252,64 +1126,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1325,19 +1180,16 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -1348,23 +1200,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -1376,17 +1224,13 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -1400,70 +1244,54 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -1471,20 +1299,18 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object sha1Fingerprint_ = ""; /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @return The sha1Fingerprint. */ public java.lang.String getSha1Fingerprint() { java.lang.Object ref = sha1Fingerprint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; @@ -1493,21 +1319,20 @@ public java.lang.String getSha1Fingerprint() { } } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @return The bytes for sha1Fingerprint. */ - public com.google.protobuf.ByteString getSha1FingerprintBytes() { + public com.google.protobuf.ByteString + getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -1515,68 +1340,61 @@ public com.google.protobuf.ByteString getSha1FingerprintBytes() { } } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @param value The sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1Fingerprint(java.lang.String value) { + public Builder setSha1Fingerprint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha1Fingerprint_ = value; onChanged(); return this; } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @return This builder for chaining. */ public Builder clearSha1Fingerprint() { - + sha1Fingerprint_ = getDefaultInstance().getSha1Fingerprint(); onChanged(); return this; } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @param value The bytes for sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1FingerprintBytes(com.google.protobuf.ByteString value) { + public Builder setSha1FingerprintBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha1Fingerprint_ = 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); } @@ -1586,12 +1404,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.TlsCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.TlsCertificate) private static final com.google.cloud.redis.v1.TlsCertificate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.TlsCertificate(); } @@ -1600,16 +1418,16 @@ public static com.google.cloud.redis.v1.TlsCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TlsCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TlsCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TlsCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TlsCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1624,4 +1442,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.TlsCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java similarity index 72% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java index 0c355b2a..4c41d481 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java @@ -1,188 +1,135 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface TlsCertificateOrBuilder - extends +public interface TlsCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.TlsCertificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The serialNumber. */ java.lang.String getSerialNumber(); /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The bytes for serialNumber. */ - com.google.protobuf.ByteString getSerialNumberBytes(); + com.google.protobuf.ByteString + getSerialNumberBytes(); /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The cert. */ java.lang.String getCert(); /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The bytes for cert. */ - com.google.protobuf.ByteString getCertBytes(); + com.google.protobuf.ByteString + getCertBytes(); /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The sha1Fingerprint. */ java.lang.String getSha1Fingerprint(); /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The bytes for sha1Fingerprint. */ - com.google.protobuf.ByteString getSha1FingerprintBytes(); + com.google.protobuf.ByteString + getSha1FingerprintBytes(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java similarity index 71% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java index 2abd1c61..27207482 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,43 +52,39 @@ private UpdateInstanceRequest( 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(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.redis.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,33 +92,29 @@ private UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpdateInstanceRequest.class, - com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpdateInstanceRequest.class, com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -150,9 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -160,8 +134,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -173,9 +145,7 @@ public boolean hasUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -183,8 +153,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -196,8 +164,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -207,16 +174,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.redis.v1.Instance instance_; /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -224,16 +187,12 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override @@ -241,15 +200,12 @@ public com.google.cloud.redis.v1.Instance getInstance() { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -257,7 +213,6 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -286,10 +242,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 (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,21 +257,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.redis.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.UpdateInstanceRequest other = - (com.google.cloud.redis.v1.UpdateInstanceRequest) obj; + com.google.cloud.redis.v1.UpdateInstanceRequest other = (com.google.cloud.redis.v1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,127 +298,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest 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.redis.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.UpdateInstanceRequest) com.google.cloud.redis.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpdateInstanceRequest.class, - com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpdateInstanceRequest.class, com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.UpdateInstanceRequest.newBuilder() @@ -467,15 +417,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(); @@ -495,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -516,8 +467,7 @@ public com.google.cloud.redis.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.UpdateInstanceRequest buildPartial() { - com.google.cloud.redis.v1.UpdateInstanceRequest result = - new com.google.cloud.redis.v1.UpdateInstanceRequest(this); + com.google.cloud.redis.v1.UpdateInstanceRequest result = new com.google.cloud.redis.v1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -536,39 +486,38 @@ public com.google.cloud.redis.v1.UpdateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -576,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.UpdateInstanceRequest other) { - if (other == com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -615,13 +563,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_; /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -633,17 +576,13 @@ public Builder mergeFrom(
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -655,23 +594,17 @@ public boolean hasUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @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(); } } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -683,8 +616,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -700,8 +632,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -713,10 +643,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ - 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(); @@ -727,8 +657,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -740,14 +668,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -759,8 +686,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -772,8 +697,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -787,8 +711,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -800,17 +722,14 @@ public Builder clearUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -822,21 +741,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; } } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -848,21 +763,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; @@ -870,58 +781,42 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.redis.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, - com.google.cloud.redis.v1.Instance.Builder, - com.google.cloud.redis.v1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.redis.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.redis.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { @@ -937,17 +832,15 @@ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.redis.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.redis.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -958,23 +851,18 @@ public Builder setInstance(com.google.cloud.redis.v1.Instance.Builder builderFor return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -986,15 +874,12 @@ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -1008,71 +893,58 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.redis.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, - com.google.cloud.redis.v1.Instance.Builder, - com.google.cloud.redis.v1.InstanceOrBuilder> + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, - com.google.cloud.redis.v1.Instance.Builder, - com.google.cloud.redis.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1082,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpdateInstanceRequest) private static final com.google.cloud.redis.v1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.UpdateInstanceRequest(); } @@ -1096,16 +968,16 @@ public static com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java index 54d6c324..385464ef 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -37,15 +19,11 @@ public interface UpdateInstanceRequestOrBuilder
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -57,15 +35,11 @@ public interface UpdateInstanceRequestOrBuilder
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -77,49 +51,37 @@ public interface UpdateInstanceRequestOrBuilder
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.redis.v1.Instance getInstance(); /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java similarity index 68% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java index 44d852b6..c2e59b69 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Request for [UpgradeInstance][google.cloud.redis.v1.CloudRedis.UpgradeInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.UpgradeInstanceRequest} */ -public final class UpgradeInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpgradeInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.UpgradeInstanceRequest) UpgradeInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpgradeInstanceRequest.newBuilder() to construct. private UpgradeInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpgradeInstanceRequest() { name_ = ""; redisVersion_ = ""; @@ -44,15 +26,16 @@ private UpgradeInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpgradeInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpgradeInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private UpgradeInstanceRequest( 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(); - redisVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + redisVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private UpgradeInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpgradeInstanceRequest.class, - com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -144,33 +118,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -181,14 +153,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REDIS_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object redisVersion_; /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The redisVersion. */ @java.lang.Override @@ -197,29 +166,29 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -270,16 +239,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.redis.v1.UpgradeInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.UpgradeInstanceRequest other = - (com.google.cloud.redis.v1.UpgradeInstanceRequest) obj; + com.google.cloud.redis.v1.UpgradeInstanceRequest other = (com.google.cloud.redis.v1.UpgradeInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRedisVersion().equals(other.getRedisVersion())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRedisVersion() + .equals(other.getRedisVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,127 +270,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.UpgradeInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [UpgradeInstance][google.cloud.redis.v1.CloudRedis.UpgradeInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.UpgradeInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.UpgradeInstanceRequest) com.google.cloud.redis.v1.UpgradeInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpgradeInstanceRequest.class, - com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.UpgradeInstanceRequest.newBuilder() @@ -428,15 +389,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(); @@ -448,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override @@ -469,8 +431,7 @@ public com.google.cloud.redis.v1.UpgradeInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.UpgradeInstanceRequest buildPartial() { - com.google.cloud.redis.v1.UpgradeInstanceRequest result = - new com.google.cloud.redis.v1.UpgradeInstanceRequest(this); + com.google.cloud.redis.v1.UpgradeInstanceRequest result = new com.google.cloud.redis.v1.UpgradeInstanceRequest(this); result.name_ = name_; result.redisVersion_ = redisVersion_; onBuilt(); @@ -481,39 +442,38 @@ public com.google.cloud.redis.v1.UpgradeInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.UpgradeInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.UpgradeInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1.UpgradeInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -521,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.UpgradeInstanceRequest other) { - if (other == com.google.cloud.redis.v1.UpgradeInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1.UpgradeInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -562,24 +521,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -588,25 +543,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -614,73 +566,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -688,20 +627,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object redisVersion_ = ""; /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -710,21 +647,20 @@ public java.lang.String getRedisVersion() { } } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -732,68 +668,61 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { } } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion(java.lang.String value) { + public Builder setRedisVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = 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); } @@ -803,12 +732,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.UpgradeInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpgradeInstanceRequest) private static final com.google.cloud.redis.v1.UpgradeInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.UpgradeInstanceRequest(); } @@ -817,16 +746,16 @@ public static com.google.cloud.redis.v1.UpgradeInstanceRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -841,4 +770,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.UpgradeInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java index 1dd9553a..c3b242ae 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java @@ -1,83 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface UpgradeInstanceRequestOrBuilder - extends +public interface UpgradeInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.UpgradeInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString getRedisVersionBytes(); + com.google.protobuf.ByteString + getRedisVersionBytes(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java similarity index 72% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java index 34a2a3f4..f20ca5b6 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Time window in which disruptive maintenance updates occur. Non-disruptive
  * updates can occur inside or outside this window.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.WeeklyMaintenanceWindow}
  */
-public final class WeeklyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WeeklyMaintenanceWindow extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.WeeklyMaintenanceWindow)
     WeeklyMaintenanceWindowOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WeeklyMaintenanceWindow.newBuilder() to construct.
   private WeeklyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WeeklyMaintenanceWindow() {
     day_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WeeklyMaintenanceWindow();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private WeeklyMaintenanceWindow(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,49 +54,45 @@ private WeeklyMaintenanceWindow(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              day_ = rawValue;
-              break;
+            day_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.type.TimeOfDay.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.type.TimeOfDay.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (duration_ != null) {
-                subBuilder = duration_.toBuilder();
-              }
-              duration_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(duration_);
-                duration_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (duration_ != null) {
+              subBuilder = duration_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(duration_);
+              duration_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -121,58 +100,48 @@ private WeeklyMaintenanceWindow(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class,
-            com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
+            com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
   }
 
   public static final int DAY_FIELD_NUMBER = 1;
   private int day_;
   /**
-   *
-   *
    * 
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for day. */ - @java.lang.Override - public int getDayValue() { + @java.lang.Override public int getDayValue() { return day_; } /** - * - * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The day. */ - @java.lang.Override - public com.google.type.DayOfWeek getDay() { + @java.lang.Override public com.google.type.DayOfWeek getDay() { @SuppressWarnings("deprecation") com.google.type.DayOfWeek result = com.google.type.DayOfWeek.valueOf(day_); return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; @@ -181,14 +150,11 @@ public com.google.type.DayOfWeek getDay() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.type.TimeOfDay startTime_; /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -196,14 +162,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startTime. */ @java.lang.Override @@ -211,8 +174,6 @@ public com.google.type.TimeOfDay getStartTime() { return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
@@ -227,15 +188,11 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration duration_; /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ @java.lang.Override @@ -243,15 +200,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ @java.lang.Override @@ -259,14 +212,11 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -274,7 +224,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +235,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 (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { output.writeEnum(1, day_); } @@ -306,13 +256,16 @@ public int getSerializedSize() { size = 0; if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, day_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, day_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -322,22 +275,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.redis.v1.WeeklyMaintenanceWindow)) { return super.equals(obj); } - com.google.cloud.redis.v1.WeeklyMaintenanceWindow other = - (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) obj; + com.google.cloud.redis.v1.WeeklyMaintenanceWindow other = (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) obj; if (day_ != other.day_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -366,103 +320,96 @@ public int hashCode() { } public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.WeeklyMaintenanceWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Time window in which disruptive maintenance updates occur. Non-disruptive
    * updates can occur inside or outside this window.
@@ -470,23 +417,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1.WeeklyMaintenanceWindow}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.WeeklyMaintenanceWindow)
       com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class,
-              com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
+              com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.WeeklyMaintenanceWindow.newBuilder()
@@ -494,15 +439,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();
@@ -524,9 +470,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
@@ -545,8 +491,7 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.WeeklyMaintenanceWindow buildPartial() {
-      com.google.cloud.redis.v1.WeeklyMaintenanceWindow result =
-          new com.google.cloud.redis.v1.WeeklyMaintenanceWindow(this);
+      com.google.cloud.redis.v1.WeeklyMaintenanceWindow result = new com.google.cloud.redis.v1.WeeklyMaintenanceWindow(this);
       result.day_ = day_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -566,39 +511,38 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.WeeklyMaintenanceWindow) {
-        return mergeFrom((com.google.cloud.redis.v1.WeeklyMaintenanceWindow) other);
+        return mergeFrom((com.google.cloud.redis.v1.WeeklyMaintenanceWindow)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -606,8 +550,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1.WeeklyMaintenanceWindow other) {
-      if (other == com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()) return this;
       if (other.day_ != 0) {
         setDayValue(other.getDayValue());
       }
@@ -636,8 +579,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -649,47 +591,37 @@ public Builder mergeFrom(
 
     private int day_ = 0;
     /**
-     *
-     *
      * 
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for day. */ - @java.lang.Override - public int getDayValue() { + @java.lang.Override public int getDayValue() { return day_; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The enum numeric value on the wire for day to set. * @return This builder for chaining. */ public Builder setDayValue(int value) { - + day_ = value; onChanged(); return this; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The day. */ @java.lang.Override @@ -699,14 +631,11 @@ public com.google.type.DayOfWeek getDay() { return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The day to set. * @return This builder for chaining. */ @@ -714,24 +643,21 @@ public Builder setDay(com.google.type.DayOfWeek value) { if (value == null) { throw new NullPointerException(); } - + day_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDay() { - + day_ = 0; onChanged(); return this; @@ -739,33 +665,24 @@ public Builder clearDay() { private com.google.type.TimeOfDay startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder> - startTimeBuilder_; + com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> startTimeBuilder_; /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startTime. */ public com.google.type.TimeOfDay getStartTime() { @@ -776,8 +693,6 @@ public com.google.type.TimeOfDay getStartTime() { } } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -798,15 +713,14 @@ public Builder setStartTime(com.google.type.TimeOfDay value) { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + public Builder setStartTime( + com.google.type.TimeOfDay.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -817,8 +731,6 @@ public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -829,7 +741,7 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -841,8 +753,6 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -861,8 +771,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -870,13 +778,11 @@ public Builder clearStartTime() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -887,12 +793,11 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -900,17 +805,14 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder> + com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -918,35 +820,24 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -957,14 +848,11 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -980,16 +868,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -1000,20 +886,17 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -1025,14 +908,11 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDuration() { if (durationBuilder_ == null) { @@ -1046,66 +926,55 @@ public Builder clearDuration() { return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1115,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.WeeklyMaintenanceWindow) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.WeeklyMaintenanceWindow) private static final com.google.cloud.redis.v1.WeeklyMaintenanceWindow DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.WeeklyMaintenanceWindow(); } @@ -1129,16 +998,16 @@ public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WeeklyMaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeeklyMaintenanceWindow(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WeeklyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WeeklyMaintenanceWindow(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,4 +1022,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java similarity index 72% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java index bbf71327..55445e1c 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java @@ -1,80 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface WeeklyMaintenanceWindowOrBuilder - extends +public interface WeeklyMaintenanceWindowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.WeeklyMaintenanceWindow) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for day. */ int getDayValue(); /** - * - * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The day. */ com.google.type.DayOfWeek getDay(); /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startTime. */ com.google.type.TimeOfDay getStartTime(); /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
@@ -84,40 +54,29 @@ public interface WeeklyMaintenanceWindowOrBuilder com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java similarity index 67% rename from proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java index e162ecdb..2e20c143 100644 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** - * - * *
  * Defines specific information for a particular zone. Currently empty and
  * reserved for future use only.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata}
  */
-public final class ZoneMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ZoneMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ZoneMetadata)
     ZoneMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ZoneMetadata.newBuilder() to construct.
   private ZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ZoneMetadata() {}
+  private ZoneMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ZoneMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ZoneMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,13 +53,13 @@ private ZoneMetadata(
           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) {
@@ -83,30 +67,27 @@ private ZoneMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-        .internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.ZoneMetadata.class,
-            com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
+            com.google.cloud.redis.v1.ZoneMetadata.class, com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -118,7 +99,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     unknownFields.writeTo(output);
   }
 
@@ -136,7 +118,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.redis.v1.ZoneMetadata)) {
       return super.equals(obj);
@@ -159,104 +141,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata 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.redis.v1.ZoneMetadata parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.redis.v1.ZoneMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Defines specific information for a particular zone. Currently empty and
    * reserved for future use only.
@@ -264,23 +239,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ZoneMetadata)
       com.google.cloud.redis.v1.ZoneMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.ZoneMetadata.class,
-              com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
+              com.google.cloud.redis.v1.ZoneMetadata.class, com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.ZoneMetadata.newBuilder()
@@ -288,15 +261,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();
@@ -304,9 +278,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
-          .internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -325,8 +299,7 @@ public com.google.cloud.redis.v1.ZoneMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.ZoneMetadata buildPartial() {
-      com.google.cloud.redis.v1.ZoneMetadata result =
-          new com.google.cloud.redis.v1.ZoneMetadata(this);
+      com.google.cloud.redis.v1.ZoneMetadata result = new com.google.cloud.redis.v1.ZoneMetadata(this);
       onBuilt();
       return result;
     }
@@ -335,39 +308,38 @@ public com.google.cloud.redis.v1.ZoneMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.ZoneMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1.ZoneMetadata) other);
+        return mergeFrom((com.google.cloud.redis.v1.ZoneMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -404,9 +376,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 +388,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ZoneMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ZoneMetadata)
   private static final com.google.cloud.redis.v1.ZoneMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ZoneMetadata();
   }
@@ -430,16 +402,16 @@ public static com.google.cloud.redis.v1.ZoneMetadata getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ZoneMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ZoneMetadata(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ZoneMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ZoneMetadata(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -454,4 +426,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.redis.v1.ZoneMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java
new file mode 100644
index 00000000..826f3203
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+public interface ZoneMetadataOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ZoneMetadata)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
similarity index 100%
rename from proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
rename to owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
similarity index 97%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
index 8adc4fd3..68e341cc 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
@@ -20,6 +20,7 @@
 import com.google.cloud.redis.v1.CloudRedisClient;
 import com.google.cloud.redis.v1.DeleteInstanceRequest;
 import com.google.cloud.redis.v1.InstanceName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteInstance {
 
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
similarity index 97%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
index 1c83619c..0ada0e1d 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
@@ -19,6 +19,7 @@
 // [START redis_v1_generated_cloudredisclient_deleteinstance_instancename_sync]
 import com.google.cloud.redis.v1.CloudRedisClient;
 import com.google.cloud.redis.v1.InstanceName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteInstanceInstancename {
 
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
similarity index 97%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
index b8820bd8..1188b535 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
@@ -19,6 +19,7 @@
 // [START redis_v1_generated_cloudredisclient_deleteinstance_string_sync]
 import com.google.cloud.redis.v1.CloudRedisClient;
 import com.google.cloud.redis.v1.InstanceName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteInstanceString {
 
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
index 8823059b..512e7148 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1.samples;
 
-// [START
-// redis_v1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
+// [START redis_v1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
 import com.google.cloud.redis.v1.CloudRedisClient;
 import com.google.cloud.redis.v1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1.Instance;
@@ -41,5 +40,4 @@ public static void syncFailoverInstanceInstancenameFailoverinstancerequestdatapr
     }
   }
 }
-// [END
-// redis_v1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
+// [END redis_v1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
index 359a6d8e..fb90df6e 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1.samples;
 
-// [START
-// redis_v1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
+// [START redis_v1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
 import com.google.cloud.redis.v1.CloudRedisClient;
 import com.google.cloud.redis.v1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1.Instance;
@@ -41,5 +40,4 @@ public static void syncFailoverInstanceStringFailoverinstancerequestdataprotecti
     }
   }
 }
-// [END
-// redis_v1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
+// [END redis_v1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
index 576d7262..a12d3ce0 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1.samples;
 
-// [START
-// redis_v1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [START redis_v1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
 import com.google.cloud.redis.v1.CloudRedisClient;
 import com.google.cloud.redis.v1.Instance;
 import com.google.cloud.redis.v1.InstanceName;
@@ -46,5 +45,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END
-// redis_v1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [END redis_v1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
index 1f4e63b2..d36b725a 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1.samples;
 
-// [START
-// redis_v1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [START redis_v1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
 import com.google.cloud.redis.v1.CloudRedisClient;
 import com.google.cloud.redis.v1.Instance;
 import com.google.cloud.redis.v1.InstanceName;
@@ -45,5 +44,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END
-// redis_v1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [END redis_v1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
similarity index 97%
rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
index 884a7d67..1384af50 100644
--- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
+++ b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
@@ -51,17 +51,17 @@
  * defines the following resource model for managing Redis instances:
  *
  * 
    - *
  • The service works with a collection of cloud projects, named: `/projects/*` - *
  • Each project has a collection of available locations, named: `/locations/*` - *
  • Each location has a collection of Redis instances, named: `/instances/*` - *
  • As such, Redis instances are resources of the form: + *
  • The service works with a collection of cloud projects, named: `/projects/*` + *
  • Each project has a collection of available locations, named: `/locations/*` + *
  • Each location has a collection of Redis instances, named: `/instances/*` + *
  • As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

Note that location_id must be referring to a GCP `region`; for example: * *

    - *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` *
* *

This class provides the ability to make remote calls to the backing service through method @@ -83,13 +83,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. *
* @@ -209,6 +209,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ + @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } @@ -221,7 +222,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -260,7 +261,7 @@ public final ListInstancesPagedResponse listInstances(LocationName parent) { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -296,7 +297,7 @@ public final ListInstancesPagedResponse listInstances(String parent) { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -335,7 +336,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -375,7 +376,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -654,11 +655,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: *

    - *
  • Must contain only lowercase letters, numbers, and hyphens. - *
  • Must start with a letter. - *
  • Must be between 1-40 characters. - *
  • Must end with a number or a letter. - *
  • Must be unique within the customer project / location + *
  • Must contain only lowercase letters, numbers, and hyphens. + *
  • Must start with a letter. + *
  • Must be between 1-40 characters. + *
  • Must end with a number or a letter. + *
  • Must be unique within the customer project / location *
* * @param instance Required. A Redis [Instance] resource @@ -708,11 +709,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: *
    - *
  • Must contain only lowercase letters, numbers, and hyphens. - *
  • Must start with a letter. - *
  • Must be between 1-40 characters. - *
  • Must end with a number or a letter. - *
  • Must be unique within the customer project / location + *
  • Must contain only lowercase letters, numbers, and hyphens. + *
  • Must start with a letter. + *
  • Must be between 1-40 characters. + *
  • Must end with a number or a letter. + *
  • Must be unique within the customer project / location *
* * @param instance Required. A Redis [Instance] resource @@ -1835,10 +1836,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1888,10 +1886,7 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java similarity index 98% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index 347d6a82..abfc516c 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -29,6 +29,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.redis.v1beta1.stub.CloudRedisStubSettings; @@ -46,9 +47,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java similarity index 82% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java index 9b934c1d..b339c78a 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java +++ b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java @@ -29,17 +29,17 @@ * defines the following resource model for managing Redis instances: * *

    - *
  • The service works with a collection of cloud projects, named: `/projects/*` - *
  • Each project has a collection of available locations, named: `/locations/*` - *
  • Each location has a collection of Redis instances, named: `/instances/*` - *
  • As such, Redis instances are resources of the form: + *
  • The service works with a collection of cloud projects, named: `/projects/*` + *
  • Each project has a collection of available locations, named: `/locations/*` + *
  • Each location has a collection of Redis instances, named: `/instances/*` + *
  • As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

Note that location_id must be referring to a GCP `region`; for example: * *

    - *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` *
* *

Sample for CloudRedisClient: diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java similarity index 99% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index d123b8b3..c9338346 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -80,9 +80,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java similarity index 99% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java index f1ea1032..dbb63761 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java @@ -48,6 +48,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java similarity index 100% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java similarity index 99% rename from google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java index 75d73306..e3b81b50 100644 --- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java diff --git a/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java b/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java similarity index 100% rename from google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java rename to owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java diff --git a/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java similarity index 52% rename from grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java rename to owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java index 7094b4b6..96ce591c 100644 --- a/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.redis.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Configures and manages Cloud Memorystore for Redis instances
  * Google Cloud Memorystore for Redis v1beta1
@@ -46,534 +29,392 @@ private CloudRedisGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.redis.v1beta1.CloudRedis";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.ListInstancesRequest,
-          com.google.cloud.redis.v1beta1.ListInstancesResponse>
-      getListInstancesMethod;
+  private static volatile io.grpc.MethodDescriptor getListInstancesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListInstances",
       requestType = com.google.cloud.redis.v1beta1.ListInstancesRequest.class,
       responseType = com.google.cloud.redis.v1beta1.ListInstancesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.ListInstancesRequest,
-          com.google.cloud.redis.v1beta1.ListInstancesResponse>
-      getListInstancesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.ListInstancesRequest,
-            com.google.cloud.redis.v1beta1.ListInstancesResponse>
-        getListInstancesMethod;
+  public static io.grpc.MethodDescriptor getListInstancesMethod() {
+    io.grpc.MethodDescriptor getListInstancesMethod;
     if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
-          CloudRedisGrpc.getListInstancesMethod =
-              getListInstancesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.ListInstancesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.ListInstancesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
-                      .build();
+          CloudRedisGrpc.getListInstancesMethod = getListInstancesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.ListInstancesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.ListInstancesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
+              .build();
         }
       }
     }
     return getListInstancesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.GetInstanceRequest,
-          com.google.cloud.redis.v1beta1.Instance>
-      getGetInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getGetInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstance",
       requestType = com.google.cloud.redis.v1beta1.GetInstanceRequest.class,
       responseType = com.google.cloud.redis.v1beta1.Instance.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.GetInstanceRequest,
-          com.google.cloud.redis.v1beta1.Instance>
-      getGetInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.GetInstanceRequest,
-            com.google.cloud.redis.v1beta1.Instance>
-        getGetInstanceMethod;
+  public static io.grpc.MethodDescriptor getGetInstanceMethod() {
+    io.grpc.MethodDescriptor getGetInstanceMethod;
     if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
-          CloudRedisGrpc.getGetInstanceMethod =
-              getGetInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.GetInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.Instance.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
-                      .build();
+          CloudRedisGrpc.getGetInstanceMethod = getGetInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.GetInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.Instance.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
+              .build();
         }
       }
     }
     return getGetInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest,
-          com.google.cloud.redis.v1beta1.InstanceAuthString>
-      getGetInstanceAuthStringMethod;
+  private static volatile io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstanceAuthString",
       requestType = com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class,
       responseType = com.google.cloud.redis.v1beta1.InstanceAuthString.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest,
-          com.google.cloud.redis.v1beta1.InstanceAuthString>
-      getGetInstanceAuthStringMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest,
-            com.google.cloud.redis.v1beta1.InstanceAuthString>
-        getGetInstanceAuthStringMethod;
+  public static io.grpc.MethodDescriptor getGetInstanceAuthStringMethod() {
+    io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
     if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod)
-            == null) {
-          CloudRedisGrpc.getGetInstanceAuthStringMethod =
-              getGetInstanceAuthStringMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.InstanceAuthString
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
-                      .build();
+        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
+          CloudRedisGrpc.getGetInstanceAuthStringMethod = getGetInstanceAuthStringMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
+              .build();
         }
       }
     }
     return getGetInstanceAuthStringMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.CreateInstanceRequest, com.google.longrunning.Operation>
-      getCreateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateInstance",
       requestType = com.google.cloud.redis.v1beta1.CreateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.CreateInstanceRequest, com.google.longrunning.Operation>
-      getCreateInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.CreateInstanceRequest, com.google.longrunning.Operation>
-        getCreateInstanceMethod;
+  public static io.grpc.MethodDescriptor getCreateInstanceMethod() {
+    io.grpc.MethodDescriptor getCreateInstanceMethod;
     if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
-          CloudRedisGrpc.getCreateInstanceMethod =
-              getCreateInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.CreateInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
-                      .build();
+          CloudRedisGrpc.getCreateInstanceMethod = getCreateInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.CreateInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
+              .build();
         }
       }
     }
     return getCreateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.UpdateInstanceRequest, com.google.longrunning.Operation>
-      getUpdateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateInstance",
       requestType = com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.UpdateInstanceRequest, com.google.longrunning.Operation>
-      getUpdateInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.UpdateInstanceRequest, com.google.longrunning.Operation>
-        getUpdateInstanceMethod;
+  public static io.grpc.MethodDescriptor getUpdateInstanceMethod() {
+    io.grpc.MethodDescriptor getUpdateInstanceMethod;
     if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
-          CloudRedisGrpc.getUpdateInstanceMethod =
-              getUpdateInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.UpdateInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
-                      .build();
+          CloudRedisGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.UpdateInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
+              .build();
         }
       }
     }
     return getUpdateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, com.google.longrunning.Operation>
-      getUpgradeInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getUpgradeInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance",
       requestType = com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, com.google.longrunning.Operation>
-      getUpgradeInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, com.google.longrunning.Operation>
-        getUpgradeInstanceMethod;
+  public static io.grpc.MethodDescriptor getUpgradeInstanceMethod() {
+    io.grpc.MethodDescriptor getUpgradeInstanceMethod;
     if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
-          CloudRedisGrpc.getUpgradeInstanceMethod =
-              getUpgradeInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.UpgradeInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
-                      .build();
+          CloudRedisGrpc.getUpgradeInstanceMethod = getUpgradeInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
+              .build();
         }
       }
     }
     return getUpgradeInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.ImportInstanceRequest, com.google.longrunning.Operation>
-      getImportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getImportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportInstance",
       requestType = com.google.cloud.redis.v1beta1.ImportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.ImportInstanceRequest, com.google.longrunning.Operation>
-      getImportInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.ImportInstanceRequest, com.google.longrunning.Operation>
-        getImportInstanceMethod;
+  public static io.grpc.MethodDescriptor getImportInstanceMethod() {
+    io.grpc.MethodDescriptor getImportInstanceMethod;
     if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
-          CloudRedisGrpc.getImportInstanceMethod =
-              getImportInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.ImportInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
-                      .build();
+          CloudRedisGrpc.getImportInstanceMethod = getImportInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.ImportInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
+              .build();
         }
       }
     }
     return getImportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.ExportInstanceRequest, com.google.longrunning.Operation>
-      getExportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getExportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ExportInstance",
       requestType = com.google.cloud.redis.v1beta1.ExportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.ExportInstanceRequest, com.google.longrunning.Operation>
-      getExportInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.ExportInstanceRequest, com.google.longrunning.Operation>
-        getExportInstanceMethod;
+  public static io.grpc.MethodDescriptor getExportInstanceMethod() {
+    io.grpc.MethodDescriptor getExportInstanceMethod;
     if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
-          CloudRedisGrpc.getExportInstanceMethod =
-              getExportInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.ExportInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
-                      .build();
+          CloudRedisGrpc.getExportInstanceMethod = getExportInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.ExportInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
+              .build();
         }
       }
     }
     return getExportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.FailoverInstanceRequest, com.google.longrunning.Operation>
-      getFailoverInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getFailoverInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "FailoverInstance",
       requestType = com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.FailoverInstanceRequest, com.google.longrunning.Operation>
-      getFailoverInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.FailoverInstanceRequest,
-            com.google.longrunning.Operation>
-        getFailoverInstanceMethod;
+  public static io.grpc.MethodDescriptor getFailoverInstanceMethod() {
+    io.grpc.MethodDescriptor getFailoverInstanceMethod;
     if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
-          CloudRedisGrpc.getFailoverInstanceMethod =
-              getFailoverInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.FailoverInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
-                      .build();
+          CloudRedisGrpc.getFailoverInstanceMethod = getFailoverInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
+              .build();
         }
       }
     }
     return getFailoverInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.DeleteInstanceRequest, com.google.longrunning.Operation>
-      getDeleteInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteInstance",
       requestType = com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.DeleteInstanceRequest, com.google.longrunning.Operation>
-      getDeleteInstanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.DeleteInstanceRequest, com.google.longrunning.Operation>
-        getDeleteInstanceMethod;
+  public static io.grpc.MethodDescriptor getDeleteInstanceMethod() {
+    io.grpc.MethodDescriptor getDeleteInstanceMethod;
     if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
-          CloudRedisGrpc.getDeleteInstanceMethod =
-              getDeleteInstanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.DeleteInstanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
-                      .build();
+          CloudRedisGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.DeleteInstanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
+              .build();
         }
       }
     }
     return getDeleteInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest,
-          com.google.longrunning.Operation>
-      getRescheduleMaintenanceMethod;
+  private static volatile io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RescheduleMaintenance",
       requestType = com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest,
-          com.google.longrunning.Operation>
-      getRescheduleMaintenanceMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest,
-            com.google.longrunning.Operation>
-        getRescheduleMaintenanceMethod;
+  public static io.grpc.MethodDescriptor getRescheduleMaintenanceMethod() {
+    io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
     if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod)
-            == null) {
-          CloudRedisGrpc.getRescheduleMaintenanceMethod =
-              getRescheduleMaintenanceMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
-                      .build();
+        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
+          CloudRedisGrpc.getRescheduleMaintenanceMethod = getRescheduleMaintenanceMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
+              .build();
         }
       }
     }
     return getRescheduleMaintenanceMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static CloudRedisStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new CloudRedisStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new CloudRedisStub(channel, callOptions);
+        }
+      };
     return CloudRedisStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static CloudRedisBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static CloudRedisBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public CloudRedisBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new CloudRedisBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public CloudRedisBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new CloudRedisBlockingStub(channel, callOptions);
+        }
+      };
     return CloudRedisBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static CloudRedisFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static CloudRedisFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public CloudRedisFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new CloudRedisFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public CloudRedisFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new CloudRedisFutureStub(channel, callOptions);
+        }
+      };
     return CloudRedisFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -589,11 +430,9 @@ public CloudRedisFutureStub newStub(
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public abstract static class CloudRedisImplBase implements io.grpc.BindableService { + public static abstract class CloudRedisImplBase implements io.grpc.BindableService { /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -603,48 +442,34 @@ public abstract static class CloudRedisImplBase implements io.grpc.BindableServi
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances( - com.google.cloud.redis.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); + public void listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance( - com.google.cloud.redis.v1beta1.GetInstanceRequest request, + public void getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceAuthStringMethod(), responseObserver); + public void getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceAuthStringMethod(), responseObserver); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -657,16 +482,12 @@ public void getInstanceAuthString(
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance( - com.google.cloud.redis.v1beta1.CreateInstanceRequest request, + public void createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -674,31 +495,23 @@ public void createInstance(
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, + public void updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, + public void upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpgradeInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceMethod(), responseObserver); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -708,16 +521,12 @@ public void upgradeInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance( - com.google.cloud.redis.v1beta1.ImportInstanceRequest request, + public void importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportInstanceMethod(), responseObserver); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -725,136 +534,128 @@ public void importInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance( - com.google.cloud.redis.v1beta1.ExportInstanceRequest request, + public void exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportInstanceMethod(), responseObserver); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, + public void failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFailoverInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFailoverInstanceMethod(), responseObserver); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, + public void deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRescheduleMaintenanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRescheduleMaintenanceMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.ListInstancesRequest, - com.google.cloud.redis.v1beta1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.ListInstancesRequest, + com.google.cloud.redis.v1beta1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.GetInstanceRequest, - com.google.cloud.redis.v1beta1.Instance>(this, METHODID_GET_INSTANCE))) + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.GetInstanceRequest, + com.google.cloud.redis.v1beta1.Instance>( + this, METHODID_GET_INSTANCE))) .addMethod( - getGetInstanceAuthStringMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest, - com.google.cloud.redis.v1beta1.InstanceAuthString>( - this, METHODID_GET_INSTANCE_AUTH_STRING))) + getGetInstanceAuthStringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest, + com.google.cloud.redis.v1beta1.InstanceAuthString>( + this, METHODID_GET_INSTANCE_AUTH_STRING))) .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) .addMethod( - getUpgradeInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE))) + getUpgradeInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPGRADE_INSTANCE))) .addMethod( - getImportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.ImportInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_INSTANCE))) + getImportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.ImportInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_INSTANCE))) .addMethod( - getExportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.ExportInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_INSTANCE))) + getExportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.ExportInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_INSTANCE))) .addMethod( - getFailoverInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.FailoverInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_FAILOVER_INSTANCE))) + getFailoverInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.FailoverInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_FAILOVER_INSTANCE))) .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) .addMethod( - getRescheduleMaintenanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESCHEDULE_MAINTENANCE))) + getRescheduleMaintenanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESCHEDULE_MAINTENANCE))) .build(); } } /** - * - * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -871,18 +672,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class CloudRedisStub extends io.grpc.stub.AbstractAsyncStub { - private CloudRedisStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudRedisStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisStub(channel, callOptions); } /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -892,54 +693,37 @@ protected CloudRedisStub build(io.grpc.Channel channel, io.grpc.CallOptions call
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances( - com.google.cloud.redis.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance( - com.google.cloud.redis.v1beta1.GetInstanceRequest request, + public void getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -952,18 +736,13 @@ public void getInstanceAuthString(
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance( - com.google.cloud.redis.v1beta1.CreateInstanceRequest request, + public void createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -971,35 +750,25 @@ public void createInstance(
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, + public void updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, + public void upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -1009,18 +778,13 @@ public void upgradeInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance( - com.google.cloud.redis.v1beta1.ImportInstanceRequest request, + public void importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1028,70 +792,50 @@ public void importInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance( - com.google.cloud.redis.v1beta1.ExportInstanceRequest request, + public void exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, + public void failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, + public void deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -1107,9 +851,9 @@ public void rescheduleMaintenance(
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudRedisBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudRedisBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1120,8 +864,6 @@ protected CloudRedisBlockingStub build( } /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -1131,43 +873,34 @@ protected CloudRedisBlockingStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.cloud.redis.v1beta1.ListInstancesResponse listInstances( - com.google.cloud.redis.v1beta1.ListInstancesRequest request) { + public com.google.cloud.redis.v1beta1.ListInstancesResponse listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.cloud.redis.v1beta1.Instance getInstance( - com.google.cloud.redis.v1beta1.GetInstanceRequest request) { + public com.google.cloud.redis.v1beta1.Instance getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { + public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceAuthStringMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -1180,15 +913,12 @@ public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString(
      * is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation createInstance( - com.google.cloud.redis.v1beta1.CreateInstanceRequest request) { + public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -1196,29 +926,23 @@ public com.google.longrunning.Operation createInstance(
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) { + public com.google.longrunning.Operation updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { + public com.google.longrunning.Operation upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -1228,15 +952,12 @@ public com.google.longrunning.Operation upgradeInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation importInstance( - com.google.cloud.redis.v1beta1.ImportInstanceRequest request) { + public com.google.longrunning.Operation importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1244,58 +965,46 @@ public com.google.longrunning.Operation importInstance(
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation exportInstance( - com.google.cloud.redis.v1beta1.ExportInstanceRequest request) { + public com.google.longrunning.Operation exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.longrunning.Operation failoverInstance( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { + public com.google.longrunning.Operation failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.longrunning.Operation deleteInstance( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { + public com.google.longrunning.Operation deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.longrunning.Operation rescheduleMaintenance( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { + public com.google.longrunning.Operation rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } /** - * - * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -1311,20 +1020,19 @@ public com.google.longrunning.Operation rescheduleMaintenance(
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudRedisFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudRedisFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisFutureStub(channel, callOptions); } /** - * - * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -1334,46 +1042,37 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.redis.v1beta1.ListInstancesResponse> - listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.redis.v1beta1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.redis.v1beta1.Instance> - getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.redis.v1beta1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.redis.v1beta1.InstanceAuthString> - getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { + public com.google.common.util.concurrent.ListenableFuture getInstanceAuthString( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -1386,15 +1085,13 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture createInstance( + com.google.cloud.redis.v1beta1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -1402,29 +1099,25 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture upgradeInstance( + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -1434,15 +1127,13 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture importInstance( + com.google.cloud.redis.v1beta1.ImportInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1450,50 +1141,44 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture exportInstance( + com.google.cloud.redis.v1beta1.ExportInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture failoverInstance( + com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteInstance( + com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } /** - * - * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture rescheduleMaintenance( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request); } @@ -1511,11 +1196,11 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_DELETE_INSTANCE = 9; private static final int METHODID_RESCHEDULE_MAINTENANCE = 10; - 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 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 CloudRedisImplBase serviceImpl; private final int methodId; @@ -1529,61 +1214,47 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.redis.v1beta1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listInstances((com.google.cloud.redis.v1beta1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.redis.v1beta1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getInstance((com.google.cloud.redis.v1beta1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTANCE_AUTH_STRING: - serviceImpl.getInstanceAuthString( - (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getInstanceAuthString((com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.cloud.redis.v1beta1.CreateInstanceRequest) request, + serviceImpl.createInstance((com.google.cloud.redis.v1beta1.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) request, + serviceImpl.updateInstance((com.google.cloud.redis.v1beta1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPGRADE_INSTANCE: - serviceImpl.upgradeInstance( - (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) request, + serviceImpl.upgradeInstance((com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_INSTANCE: - serviceImpl.importInstance( - (com.google.cloud.redis.v1beta1.ImportInstanceRequest) request, + serviceImpl.importInstance((com.google.cloud.redis.v1beta1.ImportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_INSTANCE: - serviceImpl.exportInstance( - (com.google.cloud.redis.v1beta1.ExportInstanceRequest) request, + serviceImpl.exportInstance((com.google.cloud.redis.v1beta1.ExportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FAILOVER_INSTANCE: - serviceImpl.failoverInstance( - (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) request, + serviceImpl.failoverInstance((com.google.cloud.redis.v1beta1.FailoverInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) request, + serviceImpl.deleteInstance((com.google.cloud.redis.v1beta1.DeleteInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESCHEDULE_MAINTENANCE: - serviceImpl.rescheduleMaintenance( - (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) request, + serviceImpl.rescheduleMaintenance((com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1602,9 +1273,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class CloudRedisBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class CloudRedisBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudRedisBaseDescriptorSupplier() {} @java.lang.Override @@ -1646,22 +1316,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CloudRedisGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getGetInstanceAuthStringMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpgradeInstanceMethod()) - .addMethod(getImportInstanceMethod()) - .addMethod(getExportInstanceMethod()) - .addMethod(getFailoverInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getRescheduleMaintenanceMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getGetInstanceAuthStringMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpgradeInstanceMethod()) + .addMethod(getImportInstanceMethod()) + .addMethod(getExportInstanceMethod()) + .addMethod(getFailoverInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getRescheduleMaintenanceMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java new file mode 100644 index 00000000..c03e0dcc --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java @@ -0,0 +1,615 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public final class CloudRedisServiceBetaProto { + private CloudRedisServiceBetaProto() {} + 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_redis_v1beta1_NodeInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1beta1_TlsCertificate_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/redis/v1beta1/cloud_redis" + + ".proto\022\032google.cloud.redis.v1beta1\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032#google/lo" + + "ngrunning/operations.proto\032\036google/proto" + + "buf/duration.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\032\033google/type/dayofweek.proto\032\033goog" + + "le/type/timeofday.proto\".\n\010NodeInfo\022\017\n\002i" + + "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\245\021\n\010Inst" + + "ance\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030" + + "\002 \001(\t\022@\n\006labels\030\003 \003(\01320.google.cloud.red" + + "is.v1beta1.Instance.LabelsEntry\022\030\n\013locat" + + "ion_id\030\004 \001(\tB\003\340A\001\022$\n\027alternative_locatio" + + "n_id\030\005 \001(\tB\003\340A\001\022\032\n\rredis_version\030\007 \001(\tB\003" + + "\340A\001\022\036\n\021reserved_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022s" + + "econdary_ip_range\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001" + + "(\tB\003\340A\003\022\021\n\004port\030\013 \001(\005B\003\340A\003\022 \n\023current_lo" + + "cation_id\030\014 \001(\tB\003\340A\003\0224\n\013create_time\030\r \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n\005st" + + "ate\030\016 \001(\0162*.google.cloud.redis.v1beta1.I" + + "nstance.StateB\003\340A\003\022\033\n\016status_message\030\017 \001" + + "(\tB\003\340A\003\022R\n\rredis_configs\030\020 \003(\01326.google." + + "cloud.redis.v1beta1.Instance.RedisConfig" + + "sEntryB\003\340A\001\022<\n\004tier\030\021 \001(\0162).google.cloud" + + ".redis.v1beta1.Instance.TierB\003\340A\002\022\033\n\016mem" + + "ory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022authorized_net" + + "work\030\024 \001(\tB\003\340A\001\022%\n\030persistence_iam_ident" + + "ity\030\025 \001(\tB\003\340A\003\022K\n\014connect_mode\030\026 \001(\01620.g" + + "oogle.cloud.redis.v1beta1.Instance.Conne" + + "ctModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003\340A\001\022H" + + "\n\017server_ca_certs\030\031 \003(\0132*.google.cloud.r" + + "edis.v1beta1.TlsCertificateB\003\340A\003\022`\n\027tran" + + "sit_encryption_mode\030\032 \001(\0162:.google.cloud" + + ".redis.v1beta1.Instance.TransitEncryptio" + + "nModeB\003\340A\001\022N\n\022maintenance_policy\030\033 \001(\0132-" + + ".google.cloud.redis.v1beta1.MaintenanceP" + + "olicyB\003\340A\001\022R\n\024maintenance_schedule\030\034 \001(\013" + + "2/.google.cloud.redis.v1beta1.Maintenanc" + + "eScheduleB\003\340A\003\022\032\n\rreplica_count\030\037 \001(\005B\003\340" + + "A\001\0228\n\005nodes\030 \003(\0132$.google.cloud.redis.v" + + "1beta1.NodeInfoB\003\340A\003\022\032\n\rread_endpoint\030! " + + "\001(\tB\003\340A\003\022\037\n\022read_endpoint_port\030\" \001(\005B\003\340A" + + "\003\022V\n\022read_replicas_mode\030# \001(\01625.google.c" + + "loud.redis.v1beta1.Instance.ReadReplicas" + + "ModeB\003\340A\001\022N\n\022persistence_config\030% \001(\0132-." + + "google.cloud.redis.v1beta1.PersistenceCo" + + "nfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0323\n\021RedisConfigsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005" + + "READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tR" + + "EPAIRING\020\005\022\017\n\013MAINTENANCE\020\006\022\r\n\tIMPORTING" + + "\020\010\022\020\n\014FAILING_OVER\020\n\"8\n\004Tier\022\024\n\020TIER_UNS" + + "PECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013STANDARD_HA\020\003\"[" + + "\n\013ConnectMode\022\034\n\030CONNECT_MODE_UNSPECIFIE" + + "D\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032\n\026PRIVATE_SERVI" + + "CE_ACCESS\020\002\"i\n\025TransitEncryptionMode\022\'\n#" + + "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022\031\n" + + "\025SERVER_AUTHENTICATION\020\001\022\014\n\010DISABLED\020\002\"m" + + "\n\020ReadReplicasMode\022\"\n\036READ_REPLICAS_MODE" + + "_UNSPECIFIED\020\000\022\032\n\026READ_REPLICAS_DISABLED" + + "\020\001\022\031\n\025READ_REPLICAS_ENABLED\020\002:`\352A]\n\035redi" + + "s.googleapis.com/Instance\022\"2/v1beta1/{parent=pr" + + "ojects/*/locations/*}/instances:\010instanc" + + "e\332A\033parent,instance_id,instance\312A:\n#goog" + + "le.cloud.redis.v1beta1.Instance\022\023google." + + "protobuf.Any\022\206\002\n\016UpdateInstance\0221.google" + + ".cloud.redis.v1beta1.UpdateInstanceReque" + + "st\032\035.google.longrunning.Operation\"\241\001\202\323\344\223" + + "\002G2;/v1beta1/{instance.name=projects/*/l" + + "ocations/*/instances/*}:\010instance\332A\024upda" + + "te_mask,instance\312A:\n#google.cloud.redis." + + "v1beta1.Instance\022\023google.protobuf.Any\022\376\001" + + "\n\017UpgradeInstance\0222.google.cloud.redis.v" + + "1beta1.UpgradeInstanceRequest\032\035.google.l" + + "ongrunning.Operation\"\227\001\202\323\344\223\002?\":/v1beta1/" + + "{name=projects/*/locations/*/instances/*" + + "}:upgrade:\001*\332A\022name,redis_version\312A:\n#go" + + "ogle.cloud.redis.v1beta1.Instance\022\023googl" + + "e.protobuf.Any\022\372\001\n\016ImportInstance\0221.goog" + + "le.cloud.redis.v1beta1.ImportInstanceReq" + + "uest\032\035.google.longrunning.Operation\"\225\001\202\323" + + "\344\223\002>\"9/v1beta1/{name=projects/*/location" + + "s/*/instances/*}:import:\001*\332A\021name,input_" + + "config\312A:\n#google.cloud.redis.v1beta1.In" + + "stance\022\023google.protobuf.Any\022\373\001\n\016ExportIn" + + "stance\0221.google.cloud.redis.v1beta1.Expo" + + "rtInstanceRequest\032\035.google.longrunning.O" + + "peration\"\226\001\202\323\344\223\002>\"9/v1beta1/{name=projec" + + "ts/*/locations/*/instances/*}:export:\001*\332" + + "A\022name,output_config\312A:\n#google.cloud.re" + + "dis.v1beta1.Instance\022\023google.protobuf.An" + + "y\022\210\002\n\020FailoverInstance\0223.google.cloud.re" + + "dis.v1beta1.FailoverInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"\237\001\202\323\344\223\002@\";/v1" + + "beta1/{name=projects/*/locations/*/insta" + + "nces/*}:failover:\001*\332A\031name,data_protecti" + + "on_mode\312A:\n#google.cloud.redis.v1beta1.I" + + "nstance\022\023google.protobuf.Any\022\324\001\n\016DeleteI" + + "nstance\0221.google.cloud.redis.v1beta1.Del" + + "eteInstanceRequest\032\035.google.longrunning." + + "Operation\"p\202\323\344\223\0024*2/v1beta1/{name=projec" + + "ts/*/locations/*/instances/*}\332A\004name\312A,\n" + + "\025google.protobuf.Empty\022\023google.protobuf." + + "Any\022\252\002\n\025RescheduleMaintenance\0228.google.c" + + "loud.redis.v1beta1.RescheduleMaintenance" + + "Request\032\035.google.longrunning.Operation\"\267" + + "\001\202\323\344\223\002M\"H/v1beta1/{name=projects/*/locat" + + "ions/*/instances/*}:rescheduleMaintenanc" + + "e:\001*\332A$name, reschedule_type, schedule_t" + + "ime\312A:\n#google.cloud.redis.v1beta1.Insta" + + "nce\022\023google.protobuf.Any\032H\312A\024redis.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformB\177\n\036com.google.cloud.r" + + "edis.v1beta1B\032CloudRedisServiceBetaProto" + + "P\001Z?google.golang.org/genproto/googleapi" + + "s/cloud/redis/v1beta1;redisb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }); + internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor, + new java.lang.String[] { "Id", "Zone", }); + internal_static_google_cloud_redis_v1beta1_Instance_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_Instance_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Labels", "LocationId", "AlternativeLocationId", "RedisVersion", "ReservedIpRange", "SecondaryIpRange", "Host", "Port", "CurrentLocationId", "CreateTime", "State", "StatusMessage", "RedisConfigs", "Tier", "MemorySizeGb", "AuthorizedNetwork", "PersistenceIamIdentity", "ConnectMode", "AuthEnabled", "ServerCaCerts", "TransitEncryptionMode", "MaintenancePolicy", "MaintenanceSchedule", "ReplicaCount", "Nodes", "ReadEndpoint", "ReadEndpointPort", "ReadReplicasMode", "PersistenceConfig", }); + internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor, + new java.lang.String[] { "PersistenceMode", "RdbSnapshotPeriod", "RdbNextSnapshotTime", "RdbSnapshotStartTime", }); + internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor, + new java.lang.String[] { "Name", "RescheduleType", "ScheduleTime", }); + internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow", }); + internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor, + new java.lang.String[] { "Day", "StartTime", "Duration", }); + internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime", }); + internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor, + new java.lang.String[] { "AuthString", }); + internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor, + new java.lang.String[] { "Name", "RedisVersion", }); + internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor, + new java.lang.String[] { "Name", "InputConfig", }); + internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor, + new java.lang.String[] { "Name", "OutputConfig", }); + internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor, + new java.lang.String[] { "Name", "DataProtectionMode", }); + internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor, + new java.lang.String[] { "AvailableZones", }); + internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor = + internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor, + new java.lang.String[] { "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java index d7c96f49..a3873fb0 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -44,15 +26,16 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateInstanceRequest( 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(); - instanceId_ = s; - break; + instanceId_ = s; + break; + } + case 26: { + com.google.cloud.redis.v1beta1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); } - case 26: - { - com.google.cloud.redis.v1beta1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - - break; + instance_ = input.readMessage(com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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) { @@ -115,43 +93,36 @@ private CreateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, - com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 @@ -160,33 +131,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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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 { @@ -197,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** - * - * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -210,7 +177,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -219,15 +185,14 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -239,15 +204,16 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -258,16 +224,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.redis.v1beta1.Instance instance_; /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -275,34 +236,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -310,7 +260,6 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -348,7 +298,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -358,19 +309,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.redis.v1beta1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.CreateInstanceRequest other = - (com.google.cloud.redis.v1beta1.CreateInstanceRequest) obj; + com.google.cloud.redis.v1beta1.CreateInstanceRequest other = (com.google.cloud.redis.v1beta1.CreateInstanceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -397,126 +350,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.CreateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.CreateInstanceRequest) com.google.cloud.redis.v1beta1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, - com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.CreateInstanceRequest.newBuilder() @@ -524,15 +468,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(); @@ -550,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -571,8 +516,7 @@ public com.google.cloud.redis.v1beta1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.CreateInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.CreateInstanceRequest result = - new com.google.cloud.redis.v1beta1.CreateInstanceRequest(this); + com.google.cloud.redis.v1beta1.CreateInstanceRequest result = new com.google.cloud.redis.v1beta1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -588,39 +532,38 @@ public com.google.cloud.redis.v1beta1.CreateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -628,8 +571,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.CreateInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -660,8 +602,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.CreateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -673,24 +614,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,25 +636,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.google.api.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 { @@ -725,73 +659,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -799,8 +720,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -812,13 +731,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -827,8 +746,6 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -840,14 +757,15 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -855,8 +773,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -868,22 +784,20 @@ public com.google.protobuf.ByteString getInstanceIdBytes() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -895,18 +809,15 @@ public Builder setInstanceId(java.lang.String value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -918,16 +829,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -935,58 +846,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.redis.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, - com.google.cloud.redis.v1beta1.Instance.Builder, - com.google.cloud.redis.v1beta1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.redis.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -1002,17 +894,14 @@ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -1023,23 +912,17 @@ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder build return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -1051,15 +934,11 @@ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -1073,71 +952,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. A Redis [Instance] resource
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, - com.google.cloud.redis.v1beta1.Instance.Builder, - com.google.cloud.redis.v1beta1.InstanceOrBuilder> + com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, - com.google.cloud.redis.v1beta1.Instance.Builder, - com.google.cloud.redis.v1beta1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1147,12 +1010,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.CreateInstanceRequest) private static final com.google.cloud.redis.v1beta1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.CreateInstanceRequest(); } @@ -1161,16 +1024,16 @@ public static com.google.cloud.redis.v1beta1.CreateInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,4 +1048,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java index f2da240f..3026092d 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java @@ -1,64 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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 logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -70,13 +43,10 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -88,49 +58,35 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.redis.v1beta1.Instance getInstance(); /** - * - * *
    * Required. A Redis [Instance] resource
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java index a10b9204..6c29b896 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteInstanceRequest( 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) { @@ -91,43 +73,36 @@ private DeleteInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, - com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -136,33 +111,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.DeleteInstanceRequest other = - (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) obj; + com.google.cloud.redis.v1beta1.DeleteInstanceRequest other = (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.DeleteInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.DeleteInstanceRequest) com.google.cloud.redis.v1beta1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, - com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.DeleteInstanceRequest.newBuilder() @@ -362,15 +326,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(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.redis.v1beta1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.DeleteInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.DeleteInstanceRequest result = - new com.google.cloud.redis.v1beta1.DeleteInstanceRequest(this); + com.google.cloud.redis.v1beta1.DeleteInstanceRequest result = new com.google.cloud.redis.v1beta1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.redis.v1beta1.DeleteInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.DeleteInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.DeleteInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.DeleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -477,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -516,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -542,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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); } @@ -625,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.DeleteInstanceRequest) private static final com.google.cloud.redis.v1beta1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.DeleteInstanceRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..630e44a4 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java index 9ef4ff0a..03c3de77 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [Export][google.cloud.redis.v1beta1.CloudRedis.ExportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ExportInstanceRequest} */ -public final class ExportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ExportInstanceRequest) ExportInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportInstanceRequest.newBuilder() to construct. private ExportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private ExportInstanceRequest( 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 26: { + com.google.cloud.redis.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.redis.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.redis.v1beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.redis.v1beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = 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) { @@ -107,33 +86,29 @@ private ExportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, - com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -141,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -150,15 +124,14 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -166,15 +139,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -185,16 +159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -202,34 +171,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.redis.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -237,7 +195,6 @@ public com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -269,7 +227,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,18 +238,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.redis.v1beta1.ExportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ExportInstanceRequest other = - (com.google.cloud.redis.v1beta1.ExportInstanceRequest) obj; + com.google.cloud.redis.v1beta1.ExportInstanceRequest other = (com.google.cloud.redis.v1beta1.ExportInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -315,126 +275,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.ExportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [Export][google.cloud.redis.v1beta1.CloudRedis.ExportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ExportInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ExportInstanceRequest) com.google.cloud.redis.v1beta1.ExportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, - com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ExportInstanceRequest.newBuilder() @@ -442,15 +393,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(); @@ -466,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; } @java.lang.Override @@ -487,8 +439,7 @@ public com.google.cloud.redis.v1beta1.ExportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ExportInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.ExportInstanceRequest result = - new com.google.cloud.redis.v1beta1.ExportInstanceRequest(this); + com.google.cloud.redis.v1beta1.ExportInstanceRequest result = new com.google.cloud.redis.v1beta1.ExportInstanceRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -503,39 +454,38 @@ public com.google.cloud.redis.v1beta1.ExportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ExportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.ExportInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.ExportInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -543,8 +493,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ExportInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.ExportInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.ExportInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -571,8 +520,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.ExportInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.ExportInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -584,8 +532,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -593,13 +539,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -608,8 +554,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -617,14 +561,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -632,8 +577,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -641,22 +584,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -664,18 +605,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -683,16 +621,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -700,58 +638,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.redis.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.OutputConfig, - com.google.cloud.redis.v1beta1.OutputConfig.Builder, - com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.redis.v1beta1.OutputConfig, com.google.cloud.redis.v1beta1.OutputConfig.Builder, com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.redis.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -767,15 +686,11 @@ public Builder setOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig value return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.redis.v1beta1.OutputConfig.Builder builderForValue) { @@ -789,23 +704,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.redis.v1beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -817,15 +726,11 @@ public Builder mergeOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig val return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -839,71 +744,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Specify data to be exported.
      * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.OutputConfig, - com.google.cloud.redis.v1beta1.OutputConfig.Builder, - com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> + com.google.cloud.redis.v1beta1.OutputConfig, com.google.cloud.redis.v1beta1.OutputConfig.Builder, com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.OutputConfig, - com.google.cloud.redis.v1beta1.OutputConfig.Builder, - com.google.cloud.redis.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.OutputConfig, com.google.cloud.redis.v1beta1.OutputConfig.Builder, com.google.cloud.redis.v1beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ExportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ExportInstanceRequest) private static final com.google.cloud.redis.v1beta1.ExportInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ExportInstanceRequest(); } @@ -927,16 +816,16 @@ public static com.google.cloud.redis.v1beta1.ExportInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ExportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java index 4c6c5f23..8b524a8d 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ExportInstanceRequestOrBuilder - extends +public interface ExportInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ExportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -33,13 +15,10 @@ public interface ExportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -47,49 +26,35 @@ public interface ExportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.redis.v1beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Specify data to be exported.
    * 
* - * - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java similarity index 66% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java index ec99dcc9..4a4b492c 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.FailoverInstanceRequest} */ -public final class FailoverInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FailoverInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.FailoverInstanceRequest) FailoverInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FailoverInstanceRequest.newBuilder() to construct. private FailoverInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FailoverInstanceRequest() { name_ = ""; dataProtectionMode_ = 0; @@ -44,15 +26,16 @@ private FailoverInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FailoverInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FailoverInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private FailoverInstanceRequest( 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: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - dataProtectionMode_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dataProtectionMode_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,41 +80,36 @@ private FailoverInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); } /** - * - * *
    * Specifies different modes of operation in relation to the data retention.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode} */ - public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnum { + public enum DataProtectionMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -143,8 +119,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     DATA_PROTECTION_MODE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -156,8 +130,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     LIMITED_DATA_LOSS(1),
     /**
-     *
-     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -169,8 +141,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -180,8 +150,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int DATA_PROTECTION_MODE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -193,8 +161,6 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int LIMITED_DATA_LOSS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -203,6 +169,7 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int FORCE_DATA_LOSS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -227,14 +194,10 @@ public static DataProtectionMode valueOf(int value) { */ public static DataProtectionMode forNumber(int value) { switch (value) { - case 0: - return DATA_PROTECTION_MODE_UNSPECIFIED; - case 1: - return LIMITED_DATA_LOSS; - case 2: - return FORCE_DATA_LOSS; - default: - return null; + case 0: return DATA_PROTECTION_MODE_UNSPECIFIED; + case 1: return LIMITED_DATA_LOSS; + case 2: return FORCE_DATA_LOSS; + default: return null; } } @@ -242,31 +205,29 @@ public static DataProtectionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DataProtectionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataProtectionMode findValueByNumber(int number) { + return DataProtectionMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataProtectionMode findValueByNumber(int number) { - return DataProtectionMode.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.redis.v1beta1.FailoverInstanceRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDescriptor().getEnumTypes().get(0); } private static final DataProtectionMode[] VALUES = values(); @@ -274,7 +235,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DataProtectionMode 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; @@ -294,18 +256,13 @@ private DataProtectionMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -314,33 +271,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -351,51 +306,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DATA_PROTECTION_MODE_FIELD_NUMBER = 2; private int dataProtectionMode_; /** - * - * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override - public int getDataProtectionModeValue() { + @java.lang.Override public int getDataProtectionModeValue() { return dataProtectionMode_; } /** - * - * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProtectionMode. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode - getDataProtectionMode() { + @java.lang.Override public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf( - dataProtectionMode_); - return result == null - ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); + return result == null ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -407,14 +344,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (dataProtectionMode_ - != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode - .DATA_PROTECTION_MODE_UNSPECIFIED - .getNumber()) { + if (dataProtectionMode_ != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, dataProtectionMode_); } unknownFields.writeTo(output); @@ -429,11 +364,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (dataProtectionMode_ - != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode - .DATA_PROTECTION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataProtectionMode_); + if (dataProtectionMode_ != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dataProtectionMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -443,15 +376,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.redis.v1beta1.FailoverInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.FailoverInstanceRequest other = - (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) obj; + com.google.cloud.redis.v1beta1.FailoverInstanceRequest other = (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (dataProtectionMode_ != other.dataProtectionMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -474,127 +407,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.redis.v1beta1.FailoverInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.FailoverInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.FailoverInstanceRequest) com.google.cloud.redis.v1beta1.FailoverInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.FailoverInstanceRequest.newBuilder() @@ -602,15 +525,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(); @@ -622,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; } @java.lang.Override @@ -643,8 +567,7 @@ public com.google.cloud.redis.v1beta1.FailoverInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.FailoverInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.FailoverInstanceRequest result = - new com.google.cloud.redis.v1beta1.FailoverInstanceRequest(this); + com.google.cloud.redis.v1beta1.FailoverInstanceRequest result = new com.google.cloud.redis.v1beta1.FailoverInstanceRequest(this); result.name_ = name_; result.dataProtectionMode_ = dataProtectionMode_; onBuilt(); @@ -655,39 +578,38 @@ public com.google.cloud.redis.v1beta1.FailoverInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.FailoverInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.FailoverInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.FailoverInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -695,8 +617,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.FailoverInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -723,8 +644,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -736,24 +656,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -762,25 +678,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -788,73 +701,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -862,117 +762,85 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int dataProtectionMode_ = 0; /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override - public int getDataProtectionModeValue() { + @java.lang.Override public int getDataProtectionModeValue() { return dataProtectionMode_; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for dataProtectionMode to set. * @return This builder for chaining. */ public Builder setDataProtectionModeValue(int value) { - + dataProtectionMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProtectionMode. */ @java.lang.Override - public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode - getDataProtectionMode() { + public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf( - dataProtectionMode_); - return result == null - ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); + return result == null ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The dataProtectionMode to set. * @return This builder for chaining. */ - public Builder setDataProtectionMode( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode value) { + public Builder setDataProtectionMode(com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode value) { if (value == null) { throw new NullPointerException(); } - + dataProtectionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDataProtectionMode() { - + dataProtectionMode_ = 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); } @@ -982,12 +850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.FailoverInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.FailoverInstanceRequest) private static final com.google.cloud.redis.v1beta1.FailoverInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.FailoverInstanceRequest(); } @@ -996,16 +864,16 @@ public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FailoverInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FailoverInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FailoverInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.FailoverInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java index 910f2f6f..102bf9ea 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java @@ -1,88 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface FailoverInstanceRequestOrBuilder - extends +public interface FailoverInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.FailoverInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for dataProtectionMode. */ int getDataProtectionModeValue(); /** - * - * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProtectionMode. */ com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode(); diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java similarity index 71% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java index c4601ac1..ce15fa70 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * The Cloud Storage location for the output content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsDestination.class, - com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); + com.google.cloud.redis.v1beta1.GcsDestination.class, com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.GcsDestination other = - (com.google.cloud.redis.v1beta1.GcsDestination) obj; + com.google.cloud.redis.v1beta1.GcsDestination other = (com.google.cloud.redis.v1beta1.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsDestination 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.redis.v1beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the output content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GcsDestination) com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsDestination.class, - com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); + com.google.cloud.redis.v1beta1.GcsDestination.class, com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GcsDestination.newBuilder() @@ -356,15 +324,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 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.cloud.redis.v1beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsDestination buildPartial() { - com.google.cloud.redis.v1beta1.GcsDestination result = - new com.google.cloud.redis.v1beta1.GcsDestination(this); + com.google.cloud.redis.v1beta1.GcsDestination result = new com.google.cloud.redis.v1beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.redis.v1beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GcsDestination) { - return mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -482,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -505,22 +470,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -528,71 +492,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = 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); } @@ -602,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GcsDestination) private static final com.google.cloud.redis.v1beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GcsDestination(); } @@ -616,16 +573,16 @@ public static com.google.cloud.redis.v1beta1.GcsDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java similarity index 53% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java index 828f5bfe..7b75932d 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java @@ -1,52 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java similarity index 70% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java index 3bd73753..f768bec5 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * The Cloud Storage location for the input content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsSource.class, - com.google.cloud.redis.v1beta1.GcsSource.Builder.class); + com.google.cloud.redis.v1beta1.GcsSource.class, com.google.cloud.redis.v1beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -199,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.GcsSource)) { return super.equals(obj); } com.google.cloud.redis.v1beta1.GcsSource other = (com.google.cloud.redis.v1beta1.GcsSource) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsSource 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.redis.v1beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the input content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GcsSource) com.google.cloud.redis.v1beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsSource.class, - com.google.cloud.redis.v1beta1.GcsSource.Builder.class); + com.google.cloud.redis.v1beta1.GcsSource.class, com.google.cloud.redis.v1beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GcsSource.newBuilder() @@ -353,15 +322,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 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; } @java.lang.Override @@ -392,8 +362,7 @@ public com.google.cloud.redis.v1beta1.GcsSource build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsSource buildPartial() { - com.google.cloud.redis.v1beta1.GcsSource result = - new com.google.cloud.redis.v1beta1.GcsSource(this); + com.google.cloud.redis.v1beta1.GcsSource result = new com.google.cloud.redis.v1beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -403,39 +372,38 @@ public com.google.cloud.redis.v1beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GcsSource) { - return mergeFrom((com.google.cloud.redis.v1beta1.GcsSource) other); + return mergeFrom((com.google.cloud.redis.v1beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -479,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -501,21 +467,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -523,68 +488,61 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = 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 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GcsSource) private static final com.google.cloud.redis.v1beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GcsSource(); } @@ -608,16 +566,16 @@ public static com.google.cloud.redis.v1beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java similarity index 50% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java index bdc632b6..489b40e5 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java index b2dfae77..e8cbb4e7 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [GetInstanceAuthString][google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceAuthStringRequest} */ -public final class GetInstanceAuthStringRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceAuthStringRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) GetInstanceAuthStringRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceAuthStringRequest.newBuilder() to construct. private GetInstanceAuthStringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceAuthStringRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceAuthStringRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstanceAuthStringRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstanceAuthStringRequest( 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) { @@ -91,43 +73,36 @@ private GetInstanceAuthStringRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -136,33 +111,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest other = - (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) obj; + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest other = (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest prototype) { + public static Builder newBuilder(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [GetInstanceAuthString][google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceAuthStringRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.newBuilder() @@ -363,15 +326,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(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest buildPartial() { - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest result = - new com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest(this); + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest result = new com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest other) { - if (other == com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) private static final com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceAuthStringRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceAuthStringRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceAuthStringRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceAuthStringRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java new file mode 100644 index 00000000..5600f9c3 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface GetInstanceAuthStringRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java index 7628ebdd..6a31878a 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [GetInstance][google.cloud.redis.v1beta1.CloudRedis.GetInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstanceRequest( 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) { @@ -91,43 +73,36 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceRequest.class, - com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceRequest.class, com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -136,33 +111,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.GetInstanceRequest other = - (com.google.cloud.redis.v1beta1.GetInstanceRequest) obj; + com.google.cloud.redis.v1beta1.GetInstanceRequest other = (com.google.cloud.redis.v1beta1.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [GetInstance][google.cloud.redis.v1beta1.CloudRedis.GetInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GetInstanceRequest) com.google.cloud.redis.v1beta1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceRequest.class, - com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceRequest.class, com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GetInstanceRequest.newBuilder() @@ -362,15 +326,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(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.redis.v1beta1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GetInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.GetInstanceRequest result = - new com.google.cloud.redis.v1beta1.GetInstanceRequest(this); + com.google.cloud.redis.v1beta1.GetInstanceRequest result = new com.google.cloud.redis.v1beta1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.redis.v1beta1.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.GetInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -477,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -516,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -542,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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); } @@ -625,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GetInstanceRequest) private static final com.google.cloud.redis.v1beta1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GetInstanceRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.redis.v1beta1.GetInstanceRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..84700e72 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java index 17993618..c226d74f 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [Import][google.cloud.redis.v1beta1.CloudRedis.ImportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ImportInstanceRequest} */ -public final class ImportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ImportInstanceRequest) ImportInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportInstanceRequest.newBuilder() to construct. private ImportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private ImportInstanceRequest( 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 26: { + com.google.cloud.redis.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.redis.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.redis.v1beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.redis.v1beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = 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) { @@ -107,33 +86,29 @@ private ImportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, - com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -141,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -150,15 +124,14 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -166,15 +139,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -185,16 +159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1beta1.InputConfig inputConfig_; /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -202,34 +171,23 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.redis.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -237,7 +195,6 @@ public com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -269,7 +227,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,18 +238,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.redis.v1beta1.ImportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ImportInstanceRequest other = - (com.google.cloud.redis.v1beta1.ImportInstanceRequest) obj; + com.google.cloud.redis.v1beta1.ImportInstanceRequest other = (com.google.cloud.redis.v1beta1.ImportInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -315,126 +275,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.ImportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [Import][google.cloud.redis.v1beta1.CloudRedis.ImportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ImportInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ImportInstanceRequest) com.google.cloud.redis.v1beta1.ImportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, - com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ImportInstanceRequest.newBuilder() @@ -442,15 +393,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(); @@ -466,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; } @java.lang.Override @@ -487,8 +439,7 @@ public com.google.cloud.redis.v1beta1.ImportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ImportInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.ImportInstanceRequest result = - new com.google.cloud.redis.v1beta1.ImportInstanceRequest(this); + com.google.cloud.redis.v1beta1.ImportInstanceRequest result = new com.google.cloud.redis.v1beta1.ImportInstanceRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -503,39 +454,38 @@ public com.google.cloud.redis.v1beta1.ImportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ImportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.ImportInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.ImportInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -543,8 +493,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ImportInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.ImportInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.ImportInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -571,8 +520,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.ImportInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.ImportInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -584,8 +532,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -593,13 +539,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -608,8 +554,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -617,14 +561,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -632,8 +577,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -641,22 +584,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -664,18 +605,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -683,16 +621,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -700,58 +638,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.redis.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.InputConfig, - com.google.cloud.redis.v1beta1.InputConfig.Builder, - com.google.cloud.redis.v1beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.redis.v1beta1.InputConfig, com.google.cloud.redis.v1beta1.InputConfig.Builder, com.google.cloud.redis.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.redis.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.redis.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -767,15 +686,11 @@ public Builder setInputConfig(com.google.cloud.redis.v1beta1.InputConfig value) return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.redis.v1beta1.InputConfig.Builder builderForValue) { @@ -789,23 +704,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.redis.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.redis.v1beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -817,15 +726,11 @@ public Builder mergeInputConfig(com.google.cloud.redis.v1beta1.InputConfig value return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -839,71 +744,55 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Specify data to be imported.
      * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.InputConfig, - com.google.cloud.redis.v1beta1.InputConfig.Builder, - com.google.cloud.redis.v1beta1.InputConfigOrBuilder> + com.google.cloud.redis.v1beta1.InputConfig, com.google.cloud.redis.v1beta1.InputConfig.Builder, com.google.cloud.redis.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.InputConfig, - com.google.cloud.redis.v1beta1.InputConfig.Builder, - com.google.cloud.redis.v1beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.InputConfig, com.google.cloud.redis.v1beta1.InputConfig.Builder, com.google.cloud.redis.v1beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ImportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ImportInstanceRequest) private static final com.google.cloud.redis.v1beta1.ImportInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ImportInstanceRequest(); } @@ -927,16 +816,16 @@ public static com.google.cloud.redis.v1beta1.ImportInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ImportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java index 0e049843..7e7e1a87 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ImportInstanceRequestOrBuilder - extends +public interface ImportInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ImportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -33,13 +15,10 @@ public interface ImportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -47,49 +26,35 @@ public interface ImportInstanceRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.redis.v1beta1.InputConfig getInputConfig(); /** - * - * *
    * Required. Specify data to be imported.
    * 
* - * - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java similarity index 70% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java index d8c8787d..a37dc70e 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * The input content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InputConfig() {} + private InputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,27 @@ private InputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.redis.v1beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.redis.v1beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.redis.v1beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.redis.v1beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.redis.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +80,34 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InputConfig.class, - com.google.cloud.redis.v1beta1.InputConfig.Builder.class); + com.google.cloud.redis.v1beta1.InputConfig.class, com.google.cloud.redis.v1beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -146,34 +123,29 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -181,26 +153,21 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.redis.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsSource) source_; + return (com.google.cloud.redis.v1beta1.GcsSource) source_; } return com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
@@ -210,13 +177,12 @@ public com.google.cloud.redis.v1beta1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsSource) source_; + return (com.google.cloud.redis.v1beta1.GcsSource) source_; } return com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,7 +194,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 (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1beta1.GcsSource) source_); } @@ -242,9 +209,8 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.redis.v1beta1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.redis.v1beta1.GcsSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -254,18 +220,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.redis.v1beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.InputConfig other = - (com.google.cloud.redis.v1beta1.InputConfig) obj; + com.google.cloud.redis.v1beta1.InputConfig other = (com.google.cloud.redis.v1beta1.InputConfig) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -294,127 +260,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InputConfig 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.redis.v1beta1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 input content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.InputConfig) com.google.cloud.redis.v1beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InputConfig.class, - com.google.cloud.redis.v1beta1.InputConfig.Builder.class); + com.google.cloud.redis.v1beta1.InputConfig.class, com.google.cloud.redis.v1beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.InputConfig.newBuilder() @@ -422,15 +379,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 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; } @java.lang.Override @@ -461,8 +419,7 @@ public com.google.cloud.redis.v1beta1.InputConfig build() { @java.lang.Override public com.google.cloud.redis.v1beta1.InputConfig buildPartial() { - com.google.cloud.redis.v1beta1.InputConfig result = - new com.google.cloud.redis.v1beta1.InputConfig(this); + com.google.cloud.redis.v1beta1.InputConfig result = new com.google.cloud.redis.v1beta1.InputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -479,39 +436,38 @@ public com.google.cloud.redis.v1beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.InputConfig) { - return mergeFrom((com.google.cloud.redis.v1beta1.InputConfig) other); + return mergeFrom((com.google.cloud.redis.v1beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -521,15 +477,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1beta1.InputConfig other) { if (other == com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -559,12 +513,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -574,20 +528,15 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsSource, - com.google.cloud.redis.v1beta1.GcsSource.Builder, - com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.redis.v1beta1.GcsSource, com.google.cloud.redis.v1beta1.GcsSource.Builder, com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -595,14 +544,11 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -620,8 +566,6 @@ public com.google.cloud.redis.v1beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -642,15 +586,14 @@ public Builder setGcsSource(com.google.cloud.redis.v1beta1.GcsSource value) { return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; */ - public Builder setGcsSource(com.google.cloud.redis.v1beta1.GcsSource.Builder builderForValue) { + public Builder setGcsSource( + com.google.cloud.redis.v1beta1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -661,8 +604,6 @@ public Builder setGcsSource(com.google.cloud.redis.v1beta1.GcsSource.Builder bui return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -671,13 +612,10 @@ public Builder setGcsSource(com.google.cloud.redis.v1beta1.GcsSource.Builder bui */ public Builder mergeGcsSource(com.google.cloud.redis.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1 - && source_ != com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.redis.v1beta1.GcsSource.newBuilder( - (com.google.cloud.redis.v1beta1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.redis.v1beta1.GcsSource.newBuilder((com.google.cloud.redis.v1beta1.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -693,8 +631,6 @@ public Builder mergeGcsSource(com.google.cloud.redis.v1beta1.GcsSource value) { return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -718,8 +654,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -730,8 +664,6 @@ public com.google.cloud.redis.v1beta1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -750,8 +682,6 @@ public com.google.cloud.redis.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() } } /** - * - * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -759,32 +689,26 @@ public com.google.cloud.redis.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsSource, - com.google.cloud.redis.v1beta1.GcsSource.Builder, - com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> + com.google.cloud.redis.v1beta1.GcsSource, com.google.cloud.redis.v1beta1.GcsSource.Builder, com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsSource, - com.google.cloud.redis.v1beta1.GcsSource.Builder, - com.google.cloud.redis.v1beta1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.GcsSource, com.google.cloud.redis.v1beta1.GcsSource.Builder, com.google.cloud.redis.v1beta1.GcsSourceOrBuilder>( (com.google.cloud.redis.v1beta1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged(); - ; + onChanged();; return gcsSourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.InputConfig) private static final com.google.cloud.redis.v1beta1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.InputConfig(); } @@ -808,16 +732,16 @@ public static com.google.cloud.redis.v1beta1.InputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java similarity index 62% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java index 31977afd..371d5cb2 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.redis.v1beta1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location where input content is located.
    * 
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java similarity index 70% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java index 544a09a1..4935c439 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * A Memorystore for Redis instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; displayName_ = ""; @@ -62,15 +44,16 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -90,279 +73,242 @@ private Instance( 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(); - displayName_ = s; - break; - } - case 26: - { - 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; + displayName_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - 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 34: { + java.lang.String s = input.readStringRequireUtf8(); - locationId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + locationId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - alternativeLocationId_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + alternativeLocationId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - redisVersion_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); + redisVersion_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); - reservedIpRange_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + reservedIpRange_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); - host_ = s; - break; - } - case 88: - { - port_ = input.readInt32(); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); + host_ = s; + break; + } + case 88: { + + port_ = input.readInt32(); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); - currentLocationId_ = s; - break; + currentLocationId_ = s; + break; + } + case 106: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 106: - { - 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 112: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 112: { + int rawValue = input.readEnum(); - statusMessage_ = s; - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - redisConfigs_ = - com.google.protobuf.MapField.newMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry redisConfigs__ = - input.readMessage( - RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - redisConfigs_.getMutableMap().put(redisConfigs__.getKey(), redisConfigs__.getValue()); - break; - } - case 136: - { - int rawValue = input.readEnum(); + state_ = rawValue; + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); - tier_ = rawValue; - break; - } - case 144: - { - memorySizeGb_ = input.readInt32(); - break; + statusMessage_ = s; + break; + } + case 130: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + redisConfigs_ = com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 162: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + redisConfigs__ = input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + redisConfigs_.getMutableMap().put( + redisConfigs__.getKey(), redisConfigs__.getValue()); + break; + } + case 136: { + int rawValue = input.readEnum(); - authorizedNetwork_ = s; - break; - } - case 170: - { - java.lang.String s = input.readStringRequireUtf8(); + tier_ = rawValue; + break; + } + case 144: { - persistenceIamIdentity_ = s; - break; - } - case 176: - { - int rawValue = input.readEnum(); + memorySizeGb_ = input.readInt32(); + break; + } + case 162: { + java.lang.String s = input.readStringRequireUtf8(); - connectMode_ = rawValue; - break; - } - case 184: - { - authEnabled_ = input.readBool(); - break; - } - case 202: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - serverCaCerts_.add( - input.readMessage( - com.google.cloud.redis.v1beta1.TlsCertificate.parser(), extensionRegistry)); - break; - } - case 208: - { - int rawValue = input.readEnum(); + authorizedNetwork_ = s; + break; + } + case 170: { + java.lang.String s = input.readStringRequireUtf8(); + + persistenceIamIdentity_ = s; + break; + } + case 176: { + int rawValue = input.readEnum(); - transitEncryptionMode_ = rawValue; - break; + connectMode_ = rawValue; + break; + } + case 184: { + + authEnabled_ = input.readBool(); + break; + } + case 202: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + serverCaCerts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 218: - { - com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder subBuilder = null; - if (maintenancePolicy_ != null) { - subBuilder = maintenancePolicy_.toBuilder(); - } - maintenancePolicy_ = - input.readMessage( - com.google.cloud.redis.v1beta1.MaintenancePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenancePolicy_); - maintenancePolicy_ = subBuilder.buildPartial(); - } - - break; + serverCaCerts_.add( + input.readMessage(com.google.cloud.redis.v1beta1.TlsCertificate.parser(), extensionRegistry)); + break; + } + case 208: { + int rawValue = input.readEnum(); + + transitEncryptionMode_ = rawValue; + break; + } + case 218: { + com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); } - case 226: - { - com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder subBuilder = null; - if (maintenanceSchedule_ != null) { - subBuilder = maintenanceSchedule_.toBuilder(); - } - maintenanceSchedule_ = - input.readMessage( - com.google.cloud.redis.v1beta1.MaintenanceSchedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenanceSchedule_); - maintenanceSchedule_ = subBuilder.buildPartial(); - } - - break; + maintenancePolicy_ = input.readMessage(com.google.cloud.redis.v1beta1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); } - case 242: - { - java.lang.String s = input.readStringRequireUtf8(); - secondaryIpRange_ = s; - break; - } - case 248: - { - replicaCount_ = input.readInt32(); - break; + break; + } + case 226: { + com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder subBuilder = null; + if (maintenanceSchedule_ != null) { + subBuilder = maintenanceSchedule_.toBuilder(); } - case 258: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nodes_.add( - input.readMessage( - com.google.cloud.redis.v1beta1.NodeInfo.parser(), extensionRegistry)); - break; + maintenanceSchedule_ = input.readMessage(com.google.cloud.redis.v1beta1.MaintenanceSchedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenanceSchedule_); + maintenanceSchedule_ = subBuilder.buildPartial(); } - case 266: - { - java.lang.String s = input.readStringRequireUtf8(); - readEndpoint_ = s; - break; - } - case 272: - { - readEndpointPort_ = input.readInt32(); - break; + break; + } + case 242: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryIpRange_ = s; + break; + } + case 248: { + + replicaCount_ = input.readInt32(); + break; + } + case 258: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 280: - { - int rawValue = input.readEnum(); + nodes_.add( + input.readMessage(com.google.cloud.redis.v1beta1.NodeInfo.parser(), extensionRegistry)); + break; + } + case 266: { + java.lang.String s = input.readStringRequireUtf8(); - readReplicasMode_ = rawValue; - break; + readEndpoint_ = s; + break; + } + case 272: { + + readEndpointPort_ = input.readInt32(); + break; + } + case 280: { + int rawValue = input.readEnum(); + + readReplicasMode_ = rawValue; + break; + } + case 298: { + com.google.cloud.redis.v1beta1.PersistenceConfig.Builder subBuilder = null; + if (persistenceConfig_ != null) { + subBuilder = persistenceConfig_.toBuilder(); } - case 298: - { - com.google.cloud.redis.v1beta1.PersistenceConfig.Builder subBuilder = null; - if (persistenceConfig_ != null) { - subBuilder = persistenceConfig_.toBuilder(); - } - persistenceConfig_ = - input.readMessage( - com.google.cloud.redis.v1beta1.PersistenceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(persistenceConfig_); - persistenceConfig_ = subBuilder.buildPartial(); - } - - break; + persistenceConfig_ = input.readMessage(com.google.cloud.redis.v1beta1.PersistenceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(persistenceConfig_); + persistenceConfig_ = 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) { @@ -370,7 +316,8 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { serverCaCerts_ = java.util.Collections.unmodifiableList(serverCaCerts_); @@ -382,48 +329,43 @@ private Instance( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_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 internalGetLabels(); case 16: return internalGetRedisConfigs(); 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.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.Instance.class, - com.google.cloud.redis.v1beta1.Instance.Builder.class); + com.google.cloud.redis.v1beta1.Instance.class, com.google.cloud.redis.v1beta1.Instance.Builder.class); } /** - * - * *
    * Represents the different states of a Redis instance.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -432,8 +374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Redis instance is being created.
      * 
@@ -442,8 +382,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Redis instance has been created and is fully usable.
      * 
@@ -452,8 +390,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -464,8 +400,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     UPDATING(3),
     /**
-     *
-     *
      * 
      * Redis instance is being deleted.
      * 
@@ -474,8 +408,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -484,8 +416,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ REPAIRING(5), /** - * - * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -494,8 +424,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ MAINTENANCE(6), /** - * - * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -504,8 +432,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ IMPORTING(8), /** - * - * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -517,8 +443,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -527,8 +451,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Redis instance is being created.
      * 
@@ -537,8 +459,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Redis instance has been created and is fully usable.
      * 
@@ -547,8 +467,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -559,8 +477,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UPDATING_VALUE = 3;
     /**
-     *
-     *
      * 
      * Redis instance is being deleted.
      * 
@@ -569,8 +485,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -579,8 +493,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REPAIRING_VALUE = 5; /** - * - * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -589,8 +501,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MAINTENANCE_VALUE = 6; /** - * - * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -599,8 +509,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPORTING_VALUE = 8; /** - * - * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -609,6 +517,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILING_OVER_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -633,61 +542,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return UPDATING; - case 4: - return DELETING; - case 5: - return REPAIRING; - case 6: - return MAINTENANCE; - case 8: - return IMPORTING; - case 10: - return FAILING_OVER; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return UPDATING; + case 4: return DELETING; + case 5: return REPAIRING; + case 6: return MAINTENANCE; + case 8: return IMPORTING; + case 10: return FAILING_OVER; + 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.redis.v1beta1.Instance.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; @@ -705,18 +608,15 @@ private State(int value) { } /** - * - * *
    * Available service tiers to choose from
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.Tier} */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -725,8 +625,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * BASIC tier: standalone instance
      * 
@@ -735,8 +633,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ BASIC(1), /** - * - * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -748,8 +644,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -758,8 +652,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * BASIC tier: standalone instance
      * 
@@ -768,8 +660,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIC_VALUE = 1; /** - * - * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -778,6 +668,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_HA_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -802,49 +693,49 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return BASIC; - case 3: - return STANDARD_HA; - default: - return null; + case 0: return TIER_UNSPECIFIED; + case 1: return BASIC; + case 3: return STANDARD_HA; + 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< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(1); } private static final Tier[] VALUES = values(); - public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier 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; @@ -862,18 +753,15 @@ private Tier(int value) { } /** - * - * *
    * Available connection modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.ConnectMode} */ - public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { + public enum ConnectMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -882,8 +770,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ CONNECT_MODE_UNSPECIFIED(0), /** - * - * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -892,8 +778,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ DIRECT_PEERING(1), /** - * - * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -907,8 +791,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not set.
      * 
@@ -917,8 +799,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONNECT_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -927,8 +807,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DIRECT_PEERING_VALUE = 1; /** - * - * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -939,6 +817,7 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PRIVATE_SERVICE_ACCESS_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -963,49 +842,49 @@ public static ConnectMode valueOf(int value) {
      */
     public static ConnectMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return CONNECT_MODE_UNSPECIFIED;
-        case 1:
-          return DIRECT_PEERING;
-        case 2:
-          return PRIVATE_SERVICE_ACCESS;
-        default:
-          return null;
+        case 0: return CONNECT_MODE_UNSPECIFIED;
+        case 1: return DIRECT_PEERING;
+        case 2: return PRIVATE_SERVICE_ACCESS;
+        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<
+        ConnectMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ConnectMode findValueByNumber(int number) {
+              return ConnectMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ConnectMode findValueByNumber(int number) {
-            return ConnectMode.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(2);
     }
 
     private static final ConnectMode[] VALUES = values();
 
-    public static ConnectMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ConnectMode 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;
@@ -1023,18 +902,15 @@ private ConnectMode(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Available TLS modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.TransitEncryptionMode} */ - public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessageEnum { + public enum TransitEncryptionMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -1043,8 +919,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ TRANSIT_ENCRYPTION_MODE_UNSPECIFIED(0), /** - * - * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -1053,8 +927,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ SERVER_AUTHENTICATION(1), /** - * - * *
      * TLS is disabled for the instance.
      * 
@@ -1066,8 +938,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage ; /** - * - * *
      * Not set.
      * 
@@ -1076,8 +946,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ public static final int TRANSIT_ENCRYPTION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -1086,8 +954,6 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ public static final int SERVER_AUTHENTICATION_VALUE = 1; /** - * - * *
      * TLS is disabled for the instance.
      * 
@@ -1096,6 +962,7 @@ public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessage */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1120,14 +987,10 @@ public static TransitEncryptionMode valueOf(int value) { */ public static TransitEncryptionMode forNumber(int value) { switch (value) { - case 0: - return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; - case 1: - return SERVER_AUTHENTICATION; - case 2: - return DISABLED; - default: - return null; + case 0: return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; + case 1: return SERVER_AUTHENTICATION; + case 2: return DISABLED; + default: return null; } } @@ -1135,28 +998,28 @@ public static TransitEncryptionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TransitEncryptionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransitEncryptionMode findValueByNumber(int number) { + return TransitEncryptionMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransitEncryptionMode findValueByNumber(int number) { - return TransitEncryptionMode.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(3); } @@ -1165,7 +1028,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static TransitEncryptionMode 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; @@ -1183,18 +1047,15 @@ private TransitEncryptionMode(int value) { } /** - * - * *
    * Read replicas mode.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.ReadReplicasMode} */ - public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum { + public enum ReadReplicasMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1204,8 +1065,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     READ_REPLICAS_MODE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1215,8 +1074,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     READ_REPLICAS_DISABLED(1),
     /**
-     *
-     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1229,8 +1086,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1240,8 +1095,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int READ_REPLICAS_MODE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1251,8 +1104,6 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int READ_REPLICAS_DISABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1262,6 +1113,7 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int READ_REPLICAS_ENABLED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1286,42 +1138,39 @@ public static ReadReplicasMode valueOf(int value) {
      */
     public static ReadReplicasMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return READ_REPLICAS_MODE_UNSPECIFIED;
-        case 1:
-          return READ_REPLICAS_DISABLED;
-        case 2:
-          return READ_REPLICAS_ENABLED;
-        default:
-          return null;
+        case 0: return READ_REPLICAS_MODE_UNSPECIFIED;
+        case 1: return READ_REPLICAS_DISABLED;
+        case 2: return READ_REPLICAS_ENABLED;
+        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<
+        ReadReplicasMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ReadReplicasMode findValueByNumber(int number) {
+              return ReadReplicasMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ReadReplicasMode findValueByNumber(int number) {
-                return ReadReplicasMode.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(4);
     }
 
@@ -1330,7 +1179,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ReadReplicasMode 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;
@@ -1350,8 +1200,6 @@ private ReadReplicasMode(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1364,7 +1212,6 @@ private ReadReplicasMode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1373,15 +1220,14 @@ 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. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1394,15 +1240,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1413,14 +1260,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1429,29 +1273,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; } } /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @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 { @@ -1460,23 +1304,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_Instance_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.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_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_; } @@ -1485,30 +1330,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -1516,12 +1359,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -1529,16 +1371,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -1546,11 +1388,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1560,8 +1403,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1571,7 +1412,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locationId. */ @java.lang.Override @@ -1580,15 +1420,14 @@ public java.lang.String getLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } } /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1598,15 +1437,16 @@ public java.lang.String getLocationId() {
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationId_ = b; return b; } else { @@ -1617,8 +1457,6 @@ public com.google.protobuf.ByteString getLocationIdBytes() { public static final int ALTERNATIVE_LOCATION_ID_FIELD_NUMBER = 5; private volatile java.lang.Object alternativeLocationId_; /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1628,7 +1466,6 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alternativeLocationId. */ @java.lang.Override @@ -1637,15 +1474,14 @@ public java.lang.String getAlternativeLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; } } /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1655,15 +1491,16 @@ public java.lang.String getAlternativeLocationId() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alternativeLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString + getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -1674,8 +1511,6 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { public static final int REDIS_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object redisVersion_; /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1687,7 +1522,6 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The redisVersion. */ @java.lang.Override @@ -1696,15 +1530,14 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1716,15 +1549,16 @@ public java.lang.String getRedisVersion() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -1735,8 +1569,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 9; private volatile java.lang.Object reservedIpRange_; /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1749,7 +1581,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservedIpRange. */ @java.lang.Override @@ -1758,15 +1589,14 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1779,15 +1609,16 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1798,8 +1629,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { public static final int SECONDARY_IP_RANGE_FIELD_NUMBER = 30; private volatile java.lang.Object secondaryIpRange_; /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1809,7 +1638,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The secondaryIpRange. */ @java.lang.Override @@ -1818,15 +1646,14 @@ public java.lang.String getSecondaryIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; } } /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1836,15 +1663,16 @@ public java.lang.String getSecondaryIpRange() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for secondaryIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString + getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -1855,15 +1683,12 @@ public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { public static final int HOST_FIELD_NUMBER = 10; private volatile java.lang.Object host_; /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ @java.lang.Override @@ -1872,30 +1697,30 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -1906,14 +1731,11 @@ public com.google.protobuf.ByteString getHostBytes() { public static final int PORT_FIELD_NUMBER = 11; private int port_; /** - * - * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -1924,8 +1746,6 @@ public int getPort() { public static final int CURRENT_LOCATION_ID_FIELD_NUMBER = 12; private volatile java.lang.Object currentLocationId_; /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1933,7 +1753,6 @@ public int getPort() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The currentLocationId. */ @java.lang.Override @@ -1942,15 +1761,14 @@ public java.lang.String getCurrentLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; } } /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1958,15 +1776,16 @@ public java.lang.String getCurrentLocationId() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for currentLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString + getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -1977,15 +1796,11 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1993,15 +1808,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -2009,14 +1820,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2026,55 +1834,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 14; private int state_; /** - * - * *
    * Output only. The current state of this instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.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 current state of this instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.Instance.State getState() { + @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.State result = - com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1beta1.Instance.State result = com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1beta1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 15; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -2083,30 +1875,30 @@ 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. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.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 { @@ -2115,22 +1907,21 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } public static final int REDIS_CONFIGS_FIELD_NUMBER = 16; - private static final class RedisConfigsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_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.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField redisConfigs_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> redisConfigs_; private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); @@ -2142,8 +1933,6 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2161,25 +1950,24 @@ public int getRedisConfigsCount() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsRedisConfigs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetRedisConfigs().getMap().containsKey(key); } - /** Use {@link #getRedisConfigsMap()} instead. */ + /** + * Use {@link #getRedisConfigsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2197,16 +1985,14 @@ public java.util.Map getRedisConfigs() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2224,21 +2010,19 @@ public java.util.Map getRedisConfigsMap() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2256,15 +2040,15 @@ public java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + + public java.lang.String getRedisConfigsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2274,54 +2058,38 @@ public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { public static final int TIER_FIELD_NUMBER = 17; private int tier_; /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The tier. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.Instance.Tier getTier() { + @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.Tier result = - com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1beta1.Instance.Tier result = com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1beta1.Instance.Tier.UNRECOGNIZED : result; } public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 18; private int memorySizeGb_; /** - * - * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeGb. */ @java.lang.Override @@ -2332,8 +2100,6 @@ public int getMemorySizeGb() { public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 20; private volatile java.lang.Object authorizedNetwork_; /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2342,7 +2108,6 @@ public int getMemorySizeGb() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authorizedNetwork. */ @java.lang.Override @@ -2351,15 +2116,14 @@ public java.lang.String getAuthorizedNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; } } /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2368,15 +2132,16 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for authorizedNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString + getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -2387,8 +2152,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { public static final int PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER = 21; private volatile java.lang.Object persistenceIamIdentity_; /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2398,7 +2161,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The persistenceIamIdentity. */ @java.lang.Override @@ -2407,15 +2169,14 @@ public java.lang.String getPersistenceIamIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; } } /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2425,15 +2186,16 @@ public java.lang.String getPersistenceIamIdentity() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for persistenceIamIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString + getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -2444,52 +2206,35 @@ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { public static final int CONNECT_MODE_FIELD_NUMBER = 22; private int connectMode_; /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override - public int getConnectModeValue() { + @java.lang.Override public int getConnectModeValue() { return connectMode_; } /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectMode. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() { + @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ConnectMode result = - com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); - return result == null - ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.Instance.ConnectMode result = com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); + return result == null ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED : result; } public static final int AUTH_ENABLED_FIELD_NUMBER = 23; private boolean authEnabled_; /** - * - * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -2497,7 +2242,6 @@ public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() {
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authEnabled. */ @java.lang.Override @@ -2508,76 +2252,56 @@ public boolean getAuthEnabled() { public static final int SERVER_CA_CERTS_FIELD_NUMBER = 25; private java.util.List serverCaCerts_; /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getServerCaCertsList() { return serverCaCerts_; } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getServerCaCertsOrBuilderList() { return serverCaCerts_; } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getServerCaCertsCount() { return serverCaCerts_.size(); } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) { return serverCaCerts_.get(index); } /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( @@ -2588,62 +2312,41 @@ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOr public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 26; private int transitEncryptionMode_; /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override - public int getTransitEncryptionModeValue() { + @java.lang.Override public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The transitEncryptionMode. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode() { + @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = - com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf( - transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); + return result == null ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; } public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 27; private com.google.cloud.redis.v1beta1.MaintenancePolicy maintenancePolicy_; /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maintenancePolicy field is set. */ @java.lang.Override @@ -2651,36 +2354,25 @@ public boolean hasMaintenancePolicy() { return maintenancePolicy_ != null; } /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return The maintenancePolicy. */ @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null - ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; + return maintenancePolicy_ == null ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; } /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { @@ -2690,17 +2382,12 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenanceP public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 28; private com.google.cloud.redis.v1beta1.MaintenanceSchedule maintenanceSchedule_; /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maintenanceSchedule field is set. */ @java.lang.Override @@ -2708,48 +2395,34 @@ public boolean hasMaintenanceSchedule() { return maintenanceSchedule_ != null; } /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maintenanceSchedule. */ @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule() { - return maintenanceSchedule_ == null - ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() - : maintenanceSchedule_; + return maintenanceSchedule_ == null ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; } /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder - getMaintenanceScheduleOrBuilder() { + public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { return getMaintenanceSchedule(); } public static final int REPLICA_COUNT_FIELD_NUMBER = 31; private int replicaCount_; /** - * - * *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -2759,7 +2432,6 @@ public com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ @java.lang.Override @@ -2770,87 +2442,66 @@ public int getReplicaCount() { public static final int NODES_FIELD_NUMBER = 32; private java.util.List nodes_; /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getNodesOrBuilderList() { return nodes_; } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) { return nodes_.get(index); } /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index) { + public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder( + int index) { return nodes_.get(index); } public static final int READ_ENDPOINT_FIELD_NUMBER = 33; private volatile java.lang.Object readEndpoint_; /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2859,7 +2510,6 @@ public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int in
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpoint. */ @java.lang.Override @@ -2868,15 +2518,14 @@ public java.lang.String getReadEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; } } /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2885,15 +2534,16 @@ public java.lang.String getReadEndpoint() {
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for readEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString getReadEndpointBytes() { + public com.google.protobuf.ByteString + getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -2904,15 +2554,12 @@ public com.google.protobuf.ByteString getReadEndpointBytes() { public static final int READ_ENDPOINT_PORT_FIELD_NUMBER = 34; private int readEndpointPort_; /** - * - * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpointPort. */ @java.lang.Override @@ -2923,58 +2570,38 @@ public int getReadEndpointPort() { public static final int READ_REPLICAS_MODE_FIELD_NUMBER = 35; private int readReplicasMode_; /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override - public int getReadReplicasModeValue() { + @java.lang.Override public int getReadReplicasModeValue() { return readReplicasMode_; } /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The readReplicasMode. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() { + @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = - com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null - ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED : result; } public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 37; private com.google.cloud.redis.v1beta1.PersistenceConfig persistenceConfig_; /** - * - * *
    * Optional. Persistence configuration parameters
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the persistenceConfig field is set. */ @java.lang.Override @@ -2982,34 +2609,23 @@ public boolean hasPersistenceConfig() { return persistenceConfig_ != null; } /** - * - * *
    * Optional. Persistence configuration parameters
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; * @return The persistenceConfig. */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig() { - return persistenceConfig_ == null - ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() - : persistenceConfig_; + return persistenceConfig_ == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() : persistenceConfig_; } /** - * - * *
    * Optional. Persistence configuration parameters
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder() { @@ -3017,7 +2633,6 @@ public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceC } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3029,15 +2644,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); } @@ -3068,8 +2688,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, statusMessage_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 16); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRedisConfigs(), + RedisConfigsDefaultEntryHolder.defaultEntry, + 16); if (tier_ != com.google.cloud.redis.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(17, tier_); } @@ -3082,9 +2706,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, persistenceIamIdentity_); } - if (connectMode_ - != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED - .getNumber()) { + if (connectMode_ != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(22, connectMode_); } if (authEnabled_ != false) { @@ -3093,10 +2715,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < serverCaCerts_.size(); i++) { output.writeMessage(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ - != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { + if (transitEncryptionMode_ != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { @@ -3120,9 +2739,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readEndpointPort_ != 0) { output.writeInt32(34, readEndpointPort_); } - if (readReplicasMode_ - != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED - .getNumber()) { + if (readReplicasMode_ != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(35, readReplicasMode_); } if (persistenceConfig_ != null) { @@ -3143,15 +2760,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - 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(3, labels__); + 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(3, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); @@ -3169,35 +2786,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentLocationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currentLocationId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); } if (state_ != com.google.cloud.redis.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, statusMessage_); } - for (java.util.Map.Entry entry : - internalGetRedisConfigs().getMap().entrySet()) { - com.google.protobuf.MapEntry redisConfigs__ = - RedisConfigsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, redisConfigs__); + for (java.util.Map.Entry entry + : internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry + redisConfigs__ = RedisConfigsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, redisConfigs__); } if (tier_ != com.google.cloud.redis.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, tier_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, tier_); } if (memorySizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, memorySizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, memorySizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, authorizedNetwork_); @@ -3205,52 +2827,55 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, persistenceIamIdentity_); } - if (connectMode_ - != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, connectMode_); + if (connectMode_ != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(22, connectMode_); } if (authEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, authEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(23, authEnabled_); } for (int i = 0; i < serverCaCerts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, serverCaCerts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ - != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, transitEncryptionMode_); + if (transitEncryptionMode_ != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaintenancePolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getMaintenancePolicy()); } if (maintenanceSchedule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMaintenanceSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getMaintenanceSchedule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, secondaryIpRange_); } if (replicaCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(31, replicaCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(31, replicaCount_); } for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, nodes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, readEndpoint_); } if (readEndpointPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(34, readEndpointPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(34, readEndpointPort_); } - if (readReplicasMode_ - != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, readReplicasMode_); + if (readReplicasMode_ != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(35, readReplicasMode_); } if (persistenceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPersistenceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getPersistenceConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3260,55 +2885,81 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.Instance)) { return super.equals(obj); } com.google.cloud.redis.v1beta1.Instance other = (com.google.cloud.redis.v1beta1.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getLocationId().equals(other.getLocationId())) return false; - if (!getAlternativeLocationId().equals(other.getAlternativeLocationId())) return false; - if (!getRedisVersion().equals(other.getRedisVersion())) return false; - if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; - if (!getSecondaryIpRange().equals(other.getSecondaryIpRange())) return false; - if (!getHost().equals(other.getHost())) return false; - if (getPort() != other.getPort()) return false; - if (!getCurrentLocationId().equals(other.getCurrentLocationId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getLocationId() + .equals(other.getLocationId())) return false; + if (!getAlternativeLocationId() + .equals(other.getAlternativeLocationId())) return false; + if (!getRedisVersion() + .equals(other.getRedisVersion())) return false; + if (!getReservedIpRange() + .equals(other.getReservedIpRange())) return false; + if (!getSecondaryIpRange() + .equals(other.getSecondaryIpRange())) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (getPort() + != other.getPort()) return false; + if (!getCurrentLocationId() + .equals(other.getCurrentLocationId())) 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 (state_ != other.state_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (!internalGetRedisConfigs().equals( + other.internalGetRedisConfigs())) return false; if (tier_ != other.tier_) return false; - if (getMemorySizeGb() != other.getMemorySizeGb()) return false; - if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; - if (!getPersistenceIamIdentity().equals(other.getPersistenceIamIdentity())) return false; + if (getMemorySizeGb() + != other.getMemorySizeGb()) return false; + if (!getAuthorizedNetwork() + .equals(other.getAuthorizedNetwork())) return false; + if (!getPersistenceIamIdentity() + .equals(other.getPersistenceIamIdentity())) return false; if (connectMode_ != other.connectMode_) return false; - if (getAuthEnabled() != other.getAuthEnabled()) return false; - if (!getServerCaCertsList().equals(other.getServerCaCertsList())) return false; + if (getAuthEnabled() + != other.getAuthEnabled()) return false; + if (!getServerCaCertsList() + .equals(other.getServerCaCertsList())) return false; if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; if (hasMaintenancePolicy()) { - if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; + if (!getMaintenancePolicy() + .equals(other.getMaintenancePolicy())) return false; } if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false; if (hasMaintenanceSchedule()) { - if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) return false; - } - if (getReplicaCount() != other.getReplicaCount()) return false; - if (!getNodesList().equals(other.getNodesList())) return false; - if (!getReadEndpoint().equals(other.getReadEndpoint())) return false; - if (getReadEndpointPort() != other.getReadEndpointPort()) return false; + if (!getMaintenanceSchedule() + .equals(other.getMaintenanceSchedule())) return false; + } + if (getReplicaCount() + != other.getReplicaCount()) return false; + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (!getReadEndpoint() + .equals(other.getReadEndpoint())) return false; + if (getReadEndpointPort() + != other.getReadEndpointPort()) return false; if (readReplicasMode_ != other.readReplicasMode_) return false; if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; if (hasPersistenceConfig()) { - if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; + if (!getPersistenceConfig() + .equals(other.getPersistenceConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3368,7 +3019,8 @@ public int hashCode() { hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER; hash = (53 * hash) + connectMode_; hash = (37 * hash) + AUTH_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAuthEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAuthEnabled()); if (getServerCaCertsCount() > 0) { hash = (37 * hash) + SERVER_CA_CERTS_FIELD_NUMBER; hash = (53 * hash) + getServerCaCertsList().hashCode(); @@ -3404,151 +3056,144 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.Instance 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.redis.v1beta1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Memorystore for Redis instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.Instance) com.google.cloud.redis.v1beta1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetLabels(); case 16: return internalGetRedisConfigs(); 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 internalGetMutableLabels(); case 16: return internalGetMutableRedisConfigs(); 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.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.Instance.class, - com.google.cloud.redis.v1beta1.Instance.Builder.class); + com.google.cloud.redis.v1beta1.Instance.class, com.google.cloud.redis.v1beta1.Instance.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.Instance.newBuilder() @@ -3556,18 +3201,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getServerCaCertsFieldBuilder(); getNodesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3659,9 +3304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_descriptor; } @java.lang.Override @@ -3680,8 +3325,7 @@ public com.google.cloud.redis.v1beta1.Instance build() { @java.lang.Override public com.google.cloud.redis.v1beta1.Instance buildPartial() { - com.google.cloud.redis.v1beta1.Instance result = - new com.google.cloud.redis.v1beta1.Instance(this); + com.google.cloud.redis.v1beta1.Instance result = new com.google.cloud.redis.v1beta1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -3756,39 +3400,38 @@ public com.google.cloud.redis.v1beta1.Instance buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.Instance) { - return mergeFrom((com.google.cloud.redis.v1beta1.Instance) other); + return mergeFrom((com.google.cloud.redis.v1beta1.Instance)other); } else { super.mergeFrom(other); return this; @@ -3805,7 +3448,8 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); @@ -3847,7 +3491,8 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { statusMessage_ = other.statusMessage_; onChanged(); } - internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); + internalGetMutableRedisConfigs().mergeFrom( + other.internalGetRedisConfigs()); if (other.tier_ != 0) { setTierValue(other.getTierValue()); } @@ -3886,10 +3531,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { serverCaCertsBuilder_ = null; serverCaCerts_ = other.serverCaCerts_; bitField0_ = (bitField0_ & ~0x00000004); - serverCaCertsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServerCaCertsFieldBuilder() - : null; + serverCaCertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServerCaCertsFieldBuilder() : null; } else { serverCaCertsBuilder_.addAllMessages(other.serverCaCerts_); } @@ -3925,10 +3569,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000008); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodesFieldBuilder() - : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -3975,13 +3618,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3994,13 +3634,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -4009,8 +3649,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -4023,14 +3661,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -4038,8 +3677,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -4052,22 +3689,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Unique name of the resource in this scope including project and
      * location using the form:
@@ -4080,18 +3715,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -4104,16 +3736,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -4121,20 +3753,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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; @@ -4143,21 +3773,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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 { @@ -4165,81 +3794,75 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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; } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; - * * @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.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(); @@ -4251,30 +3874,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
@@ -4282,12 +3903,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
@@ -4295,17 +3915,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
@@ -4313,11 +3932,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4325,68 +3945,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - 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 locationId_ = ""; /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4396,13 +4017,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; @@ -4411,8 +4032,6 @@ public java.lang.String getLocationId() { } } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4422,14 +4041,15 @@ public java.lang.String getLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationId_ = b; return b; } else { @@ -4437,8 +4057,6 @@ public com.google.protobuf.ByteString getLocationIdBytes() { } } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4448,22 +4066,20 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId(java.lang.String value) { + public Builder setLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4473,18 +4089,15 @@ public Builder setLocationId(java.lang.String value) {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** - * - * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4494,16 +4107,16 @@ public Builder clearLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -4511,8 +4124,6 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object alternativeLocationId_ = ""; /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4522,13 +4133,13 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alternativeLocationId. */ public java.lang.String getAlternativeLocationId() { java.lang.Object ref = alternativeLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; @@ -4537,8 +4148,6 @@ public java.lang.String getAlternativeLocationId() { } } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4548,14 +4157,15 @@ public java.lang.String getAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alternativeLocationId. */ - public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString + getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -4563,8 +4173,6 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { } } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4574,22 +4182,20 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationId(java.lang.String value) { + public Builder setAlternativeLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + alternativeLocationId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4599,18 +4205,15 @@ public Builder setAlternativeLocationId(java.lang.String value) {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAlternativeLocationId() { - + alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId(); onChanged(); return this; } /** - * - * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4620,16 +4223,16 @@ public Builder clearAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setAlternativeLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alternativeLocationId_ = value; onChanged(); return this; @@ -4637,8 +4240,6 @@ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString valu private java.lang.Object redisVersion_ = ""; /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4650,13 +4251,13 @@ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString valu
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -4665,8 +4266,6 @@ public java.lang.String getRedisVersion() { } } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4678,14 +4277,15 @@ public java.lang.String getRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -4693,8 +4293,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { } } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4706,22 +4304,20 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion(java.lang.String value) { + public Builder setRedisVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4733,18 +4329,15 @@ public Builder setRedisVersion(java.lang.String value) {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4756,16 +4349,16 @@ public Builder clearRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = value; onChanged(); return this; @@ -4773,8 +4366,6 @@ public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reservedIpRange_ = ""; /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4787,13 +4378,13 @@ public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -4802,8 +4393,6 @@ public java.lang.String getReservedIpRange() { } } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4816,14 +4405,15 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -4831,8 +4421,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { } } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4845,22 +4433,20 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange(java.lang.String value) { + public Builder setReservedIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4873,18 +4459,15 @@ public Builder setReservedIpRange(java.lang.String value) {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** - * - * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4897,16 +4480,16 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; @@ -4914,8 +4497,6 @@ public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { private java.lang.Object secondaryIpRange_ = ""; /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4925,13 +4506,13 @@ public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The secondaryIpRange. */ public java.lang.String getSecondaryIpRange() { java.lang.Object ref = secondaryIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; @@ -4940,8 +4521,6 @@ public java.lang.String getSecondaryIpRange() { } } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4951,14 +4530,15 @@ public java.lang.String getSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for secondaryIpRange. */ - public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString + getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -4966,8 +4546,6 @@ public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { } } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4977,22 +4555,20 @@ public com.google.protobuf.ByteString getSecondaryIpRangeBytes() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRange(java.lang.String value) { + public Builder setSecondaryIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secondaryIpRange_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -5002,18 +4578,15 @@ public Builder setSecondaryIpRange(java.lang.String value) {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSecondaryIpRange() { - + secondaryIpRange_ = getDefaultInstance().getSecondaryIpRange(); onChanged(); return this; } /** - * - * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -5023,16 +4596,16 @@ public Builder clearSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setSecondaryIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryIpRange_ = value; onChanged(); return this; @@ -5040,21 +4613,19 @@ public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) { private java.lang.Object host_ = ""; /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -5063,22 +4634,21 @@ public java.lang.String getHost() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -5086,79 +4656,69 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setHost( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { + public Builder setHostBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_; + private int port_ ; /** - * - * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -5166,36 +4726,30 @@ public int getPort() { return port_; } /** - * - * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -5203,8 +4757,6 @@ public Builder clearPort() { private java.lang.Object currentLocationId_ = ""; /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5212,13 +4764,13 @@ public Builder clearPort() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The currentLocationId. */ public java.lang.String getCurrentLocationId() { java.lang.Object ref = currentLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; @@ -5227,8 +4779,6 @@ public java.lang.String getCurrentLocationId() { } } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5236,14 +4786,15 @@ public java.lang.String getCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for currentLocationId. */ - public com.google.protobuf.ByteString getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString + getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -5251,8 +4802,6 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() { } } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5260,22 +4809,20 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationId(java.lang.String value) { + public Builder setCurrentLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currentLocationId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5283,18 +4830,15 @@ public Builder setCurrentLocationId(java.lang.String value) {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCurrentLocationId() { - + currentLocationId_ = getDefaultInstance().getCurrentLocationId(); onChanged(); return this; } /** - * - * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -5302,16 +4846,16 @@ public Builder clearCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setCurrentLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currentLocationId_ = value; onChanged(); return this; @@ -5319,58 +4863,39 @@ public Builder setCurrentLocationIdBytes(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 time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -5386,17 +4911,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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(); @@ -5407,21 +4929,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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; } @@ -5433,15 +4951,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -5455,64 +4969,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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_; @@ -5520,73 +5018,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The current state of this instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.State result = - com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1beta1.Instance.State result = com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1beta1.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of this instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -5594,26 +5070,21 @@ public Builder setState(com.google.cloud.redis.v1beta1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of this instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -5621,21 +5092,19 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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; @@ -5644,22 +5113,21 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 { @@ -5667,87 +5135,78 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 com.google.protobuf.MapField redisConfigs_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> redisConfigs_; private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); } return redisConfigs_; } - private com.google.protobuf.MapField - internalGetMutableRedisConfigs() { - onChanged(); - ; + internalGetMutableRedisConfigs() { + onChanged();; if (redisConfigs_ == null) { - redisConfigs_ = - com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); + redisConfigs_ = com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); } if (!redisConfigs_.isMutable()) { redisConfigs_ = redisConfigs_.copy(); @@ -5759,8 +5218,6 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5778,25 +5235,24 @@ public int getRedisConfigsCount() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsRedisConfigs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetRedisConfigs().getMap().containsKey(key); } - /** Use {@link #getRedisConfigsMap()} instead. */ + /** + * Use {@link #getRedisConfigsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5814,16 +5270,14 @@ public java.util.Map getRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5841,21 +5295,19 @@ public java.util.Map getRedisConfigsMap() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5873,15 +5325,15 @@ public java.lang.String getRedisConfigsOrDefault(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); + + public java.lang.String getRedisConfigsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5889,12 +5341,11 @@ public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { } public Builder clearRedisConfigs() { - internalGetMutableRedisConfigs().getMutableMap().clear(); + internalGetMutableRedisConfigs().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5912,24 +5363,25 @@ public Builder clearRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableRedisConfigs().getMutableMap().remove(key); + + public Builder removeRedisConfigs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableRedisConfigs().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableRedisConfigs() { + public java.util.Map + getMutableRedisConfigs() { return internalGetMutableRedisConfigs().getMutableMap(); } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5947,23 +5399,21 @@ public java.util.Map getMutableRedisConfigs(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putRedisConfigs( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableRedisConfigs().getMutableMap().put(key, value); + internalGetMutableRedisConfigs().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5981,83 +5431,63 @@ public Builder putRedisConfigs(java.lang.String key, java.lang.String value) {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllRedisConfigs(java.util.Map values) { - internalGetMutableRedisConfigs().getMutableMap().putAll(values); + + public Builder putAllRedisConfigs( + java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap() + .putAll(values); return this; } private int tier_ = 0; /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The tier. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.Tier result = - com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1beta1.Instance.Tier result = com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1beta1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @param value The tier to set. * @return This builder for chaining. */ @@ -6065,41 +5495,33 @@ public Builder setTier(com.google.cloud.redis.v1beta1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The service tier of the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; } - private int memorySizeGb_; + private int memorySizeGb_ ; /** - * - * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeGb. */ @java.lang.Override @@ -6107,36 +5529,30 @@ public int getMemorySizeGb() { return memorySizeGb_; } /** - * - * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The memorySizeGb to set. * @return This builder for chaining. */ public Builder setMemorySizeGb(int value) { - + memorySizeGb_ = value; onChanged(); return this; } /** - * - * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMemorySizeGb() { - + memorySizeGb_ = 0; onChanged(); return this; @@ -6144,8 +5560,6 @@ public Builder clearMemorySizeGb() { private java.lang.Object authorizedNetwork_ = ""; /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6154,13 +5568,13 @@ public Builder clearMemorySizeGb() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authorizedNetwork. */ public java.lang.String getAuthorizedNetwork() { java.lang.Object ref = authorizedNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; @@ -6169,8 +5583,6 @@ public java.lang.String getAuthorizedNetwork() { } } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6179,14 +5591,15 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for authorizedNetwork. */ - public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString + getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -6194,8 +5607,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { } } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6204,22 +5615,20 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetwork(java.lang.String value) { + public Builder setAuthorizedNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizedNetwork_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6228,18 +5637,15 @@ public Builder setAuthorizedNetwork(java.lang.String value) {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** - * - * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6248,16 +5654,16 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setAuthorizedNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizedNetwork_ = value; onChanged(); return this; @@ -6265,8 +5671,6 @@ public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object persistenceIamIdentity_ = ""; /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6275,15 +5679,14 @@ public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The persistenceIamIdentity. */ public java.lang.String getPersistenceIamIdentity() { java.lang.Object ref = persistenceIamIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; @@ -6292,8 +5695,6 @@ public java.lang.String getPersistenceIamIdentity() { } } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6302,16 +5703,16 @@ public java.lang.String getPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for persistenceIamIdentity. */ - public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString + getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -6319,8 +5720,6 @@ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { } } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6329,24 +5728,21 @@ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentity(java.lang.String value) { + public Builder setPersistenceIamIdentity( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + persistenceIamIdentity_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6355,20 +5751,16 @@ public Builder setPersistenceIamIdentity(java.lang.String value) {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPersistenceIamIdentity() { - + persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity(); onChanged(); return this; } /** - * - * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -6377,18 +5769,17 @@ public Builder clearPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value) { + public Builder setPersistenceIamIdentityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + persistenceIamIdentity_ = value; onChanged(); return this; @@ -6396,79 +5787,55 @@ public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString val private int connectMode_ = 0; /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override - public int getConnectModeValue() { + @java.lang.Override public int getConnectModeValue() { return connectMode_; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for connectMode to set. * @return This builder for chaining. */ public Builder setConnectModeValue(int value) { - + connectMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectMode. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ConnectMode result = - com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); - return result == null - ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.Instance.ConnectMode result = com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); + return result == null ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @param value The connectMode to set. * @return This builder for chaining. */ @@ -6476,36 +5843,29 @@ public Builder setConnectMode(com.google.cloud.redis.v1beta1.Instance.ConnectMod if (value == null) { throw new NullPointerException(); } - + connectMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearConnectMode() { - + connectMode_ = 0; onChanged(); return this; } - private boolean authEnabled_; + private boolean authEnabled_ ; /** - * - * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -6513,7 +5873,6 @@ public Builder clearConnectMode() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authEnabled. */ @java.lang.Override @@ -6521,8 +5880,6 @@ public boolean getAuthEnabled() { return authEnabled_; } /** - * - * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -6530,19 +5887,16 @@ public boolean getAuthEnabled() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The authEnabled to set. * @return This builder for chaining. */ public Builder setAuthEnabled(boolean value) { - + authEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -6550,43 +5904,33 @@ public Builder setAuthEnabled(boolean value) {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAuthEnabled() { - + authEnabled_ = false; onChanged(); return this; } private java.util.List serverCaCerts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServerCaCertsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = - new java.util.ArrayList(serverCaCerts_); + serverCaCerts_ = new java.util.ArrayList(serverCaCerts_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.TlsCertificate, - com.google.cloud.redis.v1beta1.TlsCertificate.Builder, - com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> - serverCaCertsBuilder_; + com.google.cloud.redis.v1beta1.TlsCertificate, com.google.cloud.redis.v1beta1.TlsCertificate.Builder, com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> serverCaCertsBuilder_; /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getServerCaCertsList() { if (serverCaCertsBuilder_ == null) { @@ -6596,15 +5940,11 @@ public java.util.List getServerCa } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getServerCaCertsCount() { if (serverCaCertsBuilder_ == null) { @@ -6614,15 +5954,11 @@ public int getServerCaCertsCount() { } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -6632,15 +5968,11 @@ public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate value) { @@ -6657,15 +5989,11 @@ public Builder setServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) { @@ -6679,15 +6007,11 @@ public Builder setServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addServerCaCerts(com.google.cloud.redis.v1beta1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { @@ -6703,15 +6027,11 @@ public Builder addServerCaCerts(com.google.cloud.redis.v1beta1.TlsCertificate va return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate value) { @@ -6728,15 +6048,11 @@ public Builder addServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addServerCaCerts( com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) { @@ -6750,15 +6066,11 @@ public Builder addServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) { @@ -6772,21 +6084,18 @@ public Builder addServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllServerCaCerts( java.lang.Iterable values) { if (serverCaCertsBuilder_ == null) { ensureServerCaCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverCaCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverCaCerts_); onChanged(); } else { serverCaCertsBuilder_.addAllMessages(values); @@ -6794,15 +6103,11 @@ public Builder addAllServerCaCerts( return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearServerCaCerts() { if (serverCaCertsBuilder_ == null) { @@ -6815,15 +6120,11 @@ public Builder clearServerCaCerts() { return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -6836,52 +6137,39 @@ public Builder removeServerCaCerts(int index) { return this; } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder getServerCaCertsBuilder( int index) { return getServerCaCertsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( int index) { if (serverCaCertsBuilder_ == null) { - return serverCaCerts_.get(index); - } else { + return serverCaCerts_.get(index); } else { return serverCaCertsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getServerCaCertsOrBuilderList() { + public java.util.List + getServerCaCertsOrBuilderList() { if (serverCaCertsBuilder_ != null) { return serverCaCertsBuilder_.getMessageOrBuilderList(); } else { @@ -6889,63 +6177,45 @@ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOr } } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBuilder() { - return getServerCaCertsFieldBuilder() - .addBuilder(com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); + return getServerCaCertsFieldBuilder().addBuilder( + com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBuilder( int index) { - return getServerCaCertsFieldBuilder() - .addBuilder(index, com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); + return getServerCaCertsFieldBuilder().addBuilder( + index, com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getServerCaCertsBuilderList() { + public java.util.List + getServerCaCertsBuilderList() { return getServerCaCertsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.TlsCertificate, - com.google.cloud.redis.v1beta1.TlsCertificate.Builder, - com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> + com.google.cloud.redis.v1beta1.TlsCertificate, com.google.cloud.redis.v1beta1.TlsCertificate.Builder, com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> getServerCaCertsFieldBuilder() { if (serverCaCertsBuilder_ == null) { - serverCaCertsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.TlsCertificate, - com.google.cloud.redis.v1beta1.TlsCertificate.Builder, - com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>( + serverCaCertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1beta1.TlsCertificate, com.google.cloud.redis.v1beta1.TlsCertificate.Builder, com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>( serverCaCerts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6957,110 +6227,78 @@ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBui private int transitEncryptionMode_ = 0; /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override - public int getTransitEncryptionModeValue() { + @java.lang.Override public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for transitEncryptionMode to set. * @return This builder for chaining. */ public Builder setTransitEncryptionModeValue(int value) { - + transitEncryptionMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The transitEncryptionMode. */ @java.lang.Override - public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode - getTransitEncryptionMode() { + public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = - com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf( - transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); + return result == null ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @param value The transitEncryptionMode to set. * @return This builder for chaining. */ - public Builder setTransitEncryptionMode( - com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode value) { + public Builder setTransitEncryptionMode(com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode value) { if (value == null) { throw new NullPointerException(); } - + transitEncryptionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearTransitEncryptionMode() { - + transitEncryptionMode_ = 0; onChanged(); return this; @@ -7068,61 +6306,42 @@ public Builder clearTransitEncryptionMode() { private com.google.cloud.redis.v1beta1.MaintenancePolicy maintenancePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenancePolicy, - com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, - com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> - maintenancePolicyBuilder_; + com.google.cloud.redis.v1beta1.MaintenancePolicy, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maintenancePolicy field is set. */ public boolean hasMaintenancePolicy() { return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return The maintenancePolicy. */ public com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null - ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; + return maintenancePolicy_ == null ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; } else { return maintenancePolicyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { @@ -7138,16 +6357,12 @@ public Builder setMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePo return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaintenancePolicy( com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder builderForValue) { @@ -7161,24 +6376,18 @@ public Builder setMaintenancePolicy( return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { if (maintenancePolicy_ != null) { maintenancePolicy_ = - com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); } else { maintenancePolicy_ = value; } @@ -7190,16 +6399,12 @@ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1beta1.Maintenance return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { @@ -7213,68 +6418,51 @@ public Builder clearMaintenancePolicy() { return this; } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - + onChanged(); return getMaintenancePolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder - getMaintenancePolicyOrBuilder() { + public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { if (maintenancePolicyBuilder_ != null) { return maintenancePolicyBuilder_.getMessageOrBuilder(); } else { - return maintenancePolicy_ == null - ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; + return maintenancePolicy_ == null ? + com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; } } /** - * - * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenancePolicy, - com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, - com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> + com.google.cloud.redis.v1beta1.MaintenancePolicy, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> getMaintenancePolicyFieldBuilder() { if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenancePolicy, - com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, - com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.MaintenancePolicy, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); maintenancePolicy_ = null; } return maintenancePolicyBuilder_; @@ -7282,64 +6470,44 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder getMaintenancePo private com.google.cloud.redis.v1beta1.MaintenanceSchedule maintenanceSchedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenanceSchedule, - com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, - com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> - maintenanceScheduleBuilder_; + com.google.cloud.redis.v1beta1.MaintenanceSchedule, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> maintenanceScheduleBuilder_; /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maintenanceSchedule field is set. */ public boolean hasMaintenanceSchedule() { return maintenanceScheduleBuilder_ != null || maintenanceSchedule_ != null; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maintenanceSchedule. */ public com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { - return maintenanceSchedule_ == null - ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() - : maintenanceSchedule_; + return maintenanceSchedule_ == null ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; } else { return maintenanceScheduleBuilder_.getMessage(); } } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setMaintenanceSchedule( - com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { + public Builder setMaintenanceSchedule(com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7353,16 +6521,12 @@ public Builder setMaintenanceSchedule( return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaintenanceSchedule( com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder builderForValue) { @@ -7376,25 +6540,18 @@ public Builder setMaintenanceSchedule( return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeMaintenanceSchedule( - com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { + public Builder mergeMaintenanceSchedule(com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { if (maintenanceSchedule_ != null) { maintenanceSchedule_ = - com.google.cloud.redis.v1beta1.MaintenanceSchedule.newBuilder(maintenanceSchedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1beta1.MaintenanceSchedule.newBuilder(maintenanceSchedule_).mergeFrom(value).buildPartial(); } else { maintenanceSchedule_ = value; } @@ -7406,16 +6563,12 @@ public Builder mergeMaintenanceSchedule( return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { @@ -7429,78 +6582,58 @@ public Builder clearMaintenanceSchedule() { return this; } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder - getMaintenanceScheduleBuilder() { - + public com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder getMaintenanceScheduleBuilder() { + onChanged(); return getMaintenanceScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder - getMaintenanceScheduleOrBuilder() { + public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { if (maintenanceScheduleBuilder_ != null) { return maintenanceScheduleBuilder_.getMessageOrBuilder(); } else { - return maintenanceSchedule_ == null - ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() - : maintenanceSchedule_; + return maintenanceSchedule_ == null ? + com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; } } /** - * - * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenanceSchedule, - com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, - com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> + com.google.cloud.redis.v1beta1.MaintenanceSchedule, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> getMaintenanceScheduleFieldBuilder() { if (maintenanceScheduleBuilder_ == null) { - maintenanceScheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenanceSchedule, - com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, - com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder>( - getMaintenanceSchedule(), getParentForChildren(), isClean()); + maintenanceScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.MaintenanceSchedule, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder>( + getMaintenanceSchedule(), + getParentForChildren(), + isClean()); maintenanceSchedule_ = null; } return maintenanceScheduleBuilder_; } - private int replicaCount_; + private int replicaCount_ ; /** - * - * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -7510,7 +6643,6 @@ public Builder clearMaintenanceSchedule() {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ @java.lang.Override @@ -7518,8 +6650,6 @@ public int getReplicaCount() { return replicaCount_; } /** - * - * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -7529,19 +6659,16 @@ public int getReplicaCount() {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The replicaCount to set. * @return This builder for chaining. */ public Builder setReplicaCount(int value) { - + replicaCount_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -7551,42 +6678,33 @@ public Builder setReplicaCount(int value) {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReplicaCount() { - + replicaCount_ = 0; onChanged(); return this; } private java.util.List nodes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.NodeInfo, - com.google.cloud.redis.v1beta1.NodeInfo.Builder, - com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> - nodesBuilder_; + com.google.cloud.redis.v1beta1.NodeInfo, com.google.cloud.redis.v1beta1.NodeInfo.Builder, com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> nodesBuilder_; /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { @@ -7596,15 +6714,11 @@ public java.util.List getNodesList() { } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getNodesCount() { if (nodesBuilder_ == null) { @@ -7614,15 +6728,11 @@ public int getNodesCount() { } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) { if (nodesBuilder_ == null) { @@ -7632,17 +6742,14 @@ public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) { } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value) { + public Builder setNodes( + int index, com.google.cloud.redis.v1beta1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7656,15 +6763,11 @@ public Builder setNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setNodes( int index, com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { @@ -7678,15 +6781,11 @@ public Builder setNodes( return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo value) { if (nodesBuilder_ == null) { @@ -7702,17 +6801,14 @@ public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo value) { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value) { + public Builder addNodes( + int index, com.google.cloud.redis.v1beta1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7726,17 +6822,14 @@ public Builder addNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { + public Builder addNodes( + com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -7747,15 +6840,11 @@ public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo.Builder builderF return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addNodes( int index, com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { @@ -7769,21 +6858,18 @@ public Builder addNodes( return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -7791,15 +6877,11 @@ public Builder addAllNodes( return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNodes() { if (nodesBuilder_ == null) { @@ -7812,15 +6894,11 @@ public Builder clearNodes() { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { @@ -7833,50 +6911,39 @@ public Builder removeNodes(int index) { return this; } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1beta1.NodeInfo.Builder getNodesBuilder(int index) { + public com.google.cloud.redis.v1beta1.NodeInfo.Builder getNodesBuilder( + int index) { return getNodesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index) { + public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder( + int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { + return nodes_.get(index); } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List + getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -7884,62 +6951,49 @@ public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int in } } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder() { - return getNodesFieldBuilder() - .addBuilder(com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); + return getNodesFieldBuilder().addBuilder( + com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder(int index) { - return getNodesFieldBuilder() - .addBuilder(index, com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); + public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); } /** - * - * *
      * Output only. Info per node.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getNodesBuilderList() { + public java.util.List + getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.NodeInfo, - com.google.cloud.redis.v1beta1.NodeInfo.Builder, - com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> + com.google.cloud.redis.v1beta1.NodeInfo, com.google.cloud.redis.v1beta1.NodeInfo.Builder, com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.NodeInfo, - com.google.cloud.redis.v1beta1.NodeInfo.Builder, - com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>( - nodes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1beta1.NodeInfo, com.google.cloud.redis.v1beta1.NodeInfo.Builder, com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>( + nodes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); nodes_ = null; } return nodesBuilder_; @@ -7947,8 +7001,6 @@ public java.util.List getNodesB private java.lang.Object readEndpoint_ = ""; /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7957,13 +7009,13 @@ public java.util.List getNodesB
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpoint. */ public java.lang.String getReadEndpoint() { java.lang.Object ref = readEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; @@ -7972,8 +7024,6 @@ public java.lang.String getReadEndpoint() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7982,14 +7032,15 @@ public java.lang.String getReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for readEndpoint. */ - public com.google.protobuf.ByteString getReadEndpointBytes() { + public com.google.protobuf.ByteString + getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -7997,8 +7048,6 @@ public com.google.protobuf.ByteString getReadEndpointBytes() { } } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -8007,22 +7056,20 @@ public com.google.protobuf.ByteString getReadEndpointBytes() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpoint(java.lang.String value) { + public Builder setReadEndpoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + readEndpoint_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -8031,18 +7078,15 @@ public Builder setReadEndpoint(java.lang.String value) {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReadEndpoint() { - + readEndpoint_ = getDefaultInstance().getReadEndpoint(); onChanged(); return this; } /** - * - * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -8051,32 +7095,29 @@ public Builder clearReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setReadEndpointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + readEndpoint_ = value; onChanged(); return this; } - private int readEndpointPort_; + private int readEndpointPort_ ; /** - * - * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpointPort. */ @java.lang.Override @@ -8084,38 +7125,32 @@ public int getReadEndpointPort() { return readEndpointPort_; } /** - * - * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The readEndpointPort to set. * @return This builder for chaining. */ public Builder setReadEndpointPort(int value) { - + readEndpointPort_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReadEndpointPort() { - + readEndpointPort_ = 0; onChanged(); return this; @@ -8123,103 +7158,73 @@ public Builder clearReadEndpointPort() { private int readReplicasMode_ = 0; /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override - public int getReadReplicasModeValue() { + @java.lang.Override public int getReadReplicasModeValue() { return readReplicasMode_; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for readReplicasMode to set. * @return This builder for chaining. */ public Builder setReadReplicasModeValue(int value) { - + readReplicasMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The readReplicasMode. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = - com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null - ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @param value The readReplicasMode to set. * @return This builder for chaining. */ - public Builder setReadReplicasMode( - com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode value) { + public Builder setReadReplicasMode(com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode value) { if (value == null) { throw new NullPointerException(); } - + readReplicasMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearReadReplicasMode() { - + readReplicasMode_ = 0; onChanged(); return this; @@ -8227,58 +7232,39 @@ public Builder clearReadReplicasMode() { private com.google.cloud.redis.v1beta1.PersistenceConfig persistenceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.PersistenceConfig, - com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, - com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> - persistenceConfigBuilder_; + com.google.cloud.redis.v1beta1.PersistenceConfig, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> persistenceConfigBuilder_; /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the persistenceConfig field is set. */ public boolean hasPersistenceConfig() { return persistenceConfigBuilder_ != null || persistenceConfig_ != null; } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; * @return The persistenceConfig. */ public com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig() { if (persistenceConfigBuilder_ == null) { - return persistenceConfig_ == null - ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() - : persistenceConfig_; + return persistenceConfig_ == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() : persistenceConfig_; } else { return persistenceConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceConfig value) { if (persistenceConfigBuilder_ == null) { @@ -8294,15 +7280,11 @@ public Builder setPersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceCo return this; } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPersistenceConfig( com.google.cloud.redis.v1beta1.PersistenceConfig.Builder builderForValue) { @@ -8316,23 +7298,17 @@ public Builder setPersistenceConfig( return this; } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceConfig value) { if (persistenceConfigBuilder_ == null) { if (persistenceConfig_ != null) { persistenceConfig_ = - com.google.cloud.redis.v1beta1.PersistenceConfig.newBuilder(persistenceConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1beta1.PersistenceConfig.newBuilder(persistenceConfig_).mergeFrom(value).buildPartial(); } else { persistenceConfig_ = value; } @@ -8344,15 +7320,11 @@ public Builder mergePersistenceConfig(com.google.cloud.redis.v1beta1.Persistence return this; } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPersistenceConfig() { if (persistenceConfigBuilder_ == null) { @@ -8366,72 +7338,55 @@ public Builder clearPersistenceConfig() { return this; } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.redis.v1beta1.PersistenceConfig.Builder getPersistenceConfigBuilder() { - + onChanged(); return getPersistenceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder - getPersistenceConfigOrBuilder() { + public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder() { if (persistenceConfigBuilder_ != null) { return persistenceConfigBuilder_.getMessageOrBuilder(); } else { - return persistenceConfig_ == null - ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() - : persistenceConfig_; + return persistenceConfig_ == null ? + com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() : persistenceConfig_; } } /** - * - * *
      * Optional. Persistence configuration parameters
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.PersistenceConfig, - com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, - com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> + com.google.cloud.redis.v1beta1.PersistenceConfig, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> getPersistenceConfigFieldBuilder() { if (persistenceConfigBuilder_ == null) { - persistenceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.PersistenceConfig, - com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, - com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder>( - getPersistenceConfig(), getParentForChildren(), isClean()); + persistenceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.PersistenceConfig, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder>( + getPersistenceConfig(), + getParentForChildren(), + isClean()); persistenceConfig_ = null; } return persistenceConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8441,12 +7396,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance) private static final com.google.cloud.redis.v1beta1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.Instance(); } @@ -8455,16 +7410,16 @@ public static com.google.cloud.redis.v1beta1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8479,4 +7434,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java similarity index 69% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java index 8187c1bd..db0a8375 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Instance AUTH string details.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InstanceAuthString} */ -public final class InstanceAuthString extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstanceAuthString extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.InstanceAuthString) InstanceAuthStringOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstanceAuthString.newBuilder() to construct. private InstanceAuthString(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstanceAuthString() { authString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstanceAuthString(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstanceAuthString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private InstanceAuthString( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - authString_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authString_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private InstanceAuthString( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InstanceAuthString.class, - com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1beta1.InstanceAuthString.class, com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); } public static final int AUTH_STRING_FIELD_NUMBER = 1; private volatile java.lang.Object authString_; /** - * - * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; - * * @return The authString. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getAuthString() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; } } /** - * - * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; - * * @return The bytes for authString. */ @java.lang.Override - public com.google.protobuf.ByteString getAuthStringBytes() { + public com.google.protobuf.ByteString + getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authString_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getAuthStringBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authString_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.InstanceAuthString)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.InstanceAuthString other = - (com.google.cloud.redis.v1beta1.InstanceAuthString) obj; + com.google.cloud.redis.v1beta1.InstanceAuthString other = (com.google.cloud.redis.v1beta1.InstanceAuthString) obj; - if (!getAuthString().equals(other.getAuthString())) return false; + if (!getAuthString() + .equals(other.getAuthString())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.InstanceAuthString prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Instance AUTH string details.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InstanceAuthString} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.InstanceAuthString) com.google.cloud.redis.v1beta1.InstanceAuthStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InstanceAuthString.class, - com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1beta1.InstanceAuthString.class, com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.InstanceAuthString.newBuilder() @@ -354,15 +322,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(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.redis.v1beta1.InstanceAuthString build() { @java.lang.Override public com.google.cloud.redis.v1beta1.InstanceAuthString buildPartial() { - com.google.cloud.redis.v1beta1.InstanceAuthString result = - new com.google.cloud.redis.v1beta1.InstanceAuthString(this); + com.google.cloud.redis.v1beta1.InstanceAuthString result = new com.google.cloud.redis.v1beta1.InstanceAuthString(this); result.authString_ = authString_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.redis.v1beta1.InstanceAuthString buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.InstanceAuthString) { - return mergeFrom((com.google.cloud.redis.v1beta1.InstanceAuthString) other); + return mergeFrom((com.google.cloud.redis.v1beta1.InstanceAuthString)other); } else { super.mergeFrom(other); return this; @@ -444,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.InstanceAuthString other) { - if (other == com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance()) return this; if (!other.getAuthString().isEmpty()) { authString_ = other.authString_; onChanged(); @@ -469,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.InstanceAuthString) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.InstanceAuthString) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -482,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object authString_ = ""; /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @return The authString. */ public java.lang.String getAuthString() { java.lang.Object ref = authString_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; @@ -504,21 +467,20 @@ public java.lang.String getAuthString() { } } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @return The bytes for authString. */ - public com.google.protobuf.ByteString getAuthStringBytes() { + public com.google.protobuf.ByteString + getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authString_ = b; return b; } else { @@ -526,68 +488,61 @@ public com.google.protobuf.ByteString getAuthStringBytes() { } } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @param value The authString to set. * @return This builder for chaining. */ - public Builder setAuthString(java.lang.String value) { + public Builder setAuthString( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authString_ = value; onChanged(); return this; } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @return This builder for chaining. */ public Builder clearAuthString() { - + authString_ = getDefaultInstance().getAuthString(); onChanged(); return this; } /** - * - * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; - * * @param value The bytes for authString to set. * @return This builder for chaining. */ - public Builder setAuthStringBytes(com.google.protobuf.ByteString value) { + public Builder setAuthStringBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authString_ = 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); } @@ -597,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.InstanceAuthString) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.InstanceAuthString) private static final com.google.cloud.redis.v1beta1.InstanceAuthString DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.InstanceAuthString(); } @@ -611,16 +566,16 @@ public static com.google.cloud.redis.v1beta1.InstanceAuthString getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceAuthString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceAuthString(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceAuthString parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceAuthString(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.InstanceAuthString getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java new file mode 100644 index 00000000..b644250d --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface InstanceAuthStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.InstanceAuthString) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * @return The authString. + */ + java.lang.String getAuthString(); + /** + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * @return The bytes for authString. + */ + com.google.protobuf.ByteString + getAuthStringBytes(); +} diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java similarity index 100% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java similarity index 76% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java index 801e56f6..0ad633be 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -38,13 +20,10 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -57,39 +36,32 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -98,31 +70,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - 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(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
@@ -131,24 +102,22 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -158,13 +127,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locationId. */ java.lang.String getLocationId(); /** - * - * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -174,14 +140,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locationId. */ - com.google.protobuf.ByteString getLocationIdBytes(); + com.google.protobuf.ByteString + getLocationIdBytes(); /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -191,13 +155,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alternativeLocationId. */ java.lang.String getAlternativeLocationId(); /** - * - * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -207,14 +168,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alternativeLocationId. */ - com.google.protobuf.ByteString getAlternativeLocationIdBytes(); + com.google.protobuf.ByteString + getAlternativeLocationIdBytes(); /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -226,13 +185,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** - * - * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -244,14 +200,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString getRedisVersionBytes(); + com.google.protobuf.ByteString + getRedisVersionBytes(); /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -264,13 +218,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** - * - * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -283,14 +234,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString getReservedIpRangeBytes(); + com.google.protobuf.ByteString + getReservedIpRangeBytes(); /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -300,13 +249,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The secondaryIpRange. */ java.lang.String getSecondaryIpRange(); /** - * - * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -316,54 +262,44 @@ java.lang.String getLabelsOrDefault(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for secondaryIpRange. */ - com.google.protobuf.ByteString getSecondaryIpRangeBytes(); + com.google.protobuf.ByteString + getSecondaryIpRangeBytes(); /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); /** - * - * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ int getPort(); /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -371,13 +307,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The currentLocationId. */ java.lang.String getCurrentLocationId(); /** - * - * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -385,108 +318,80 @@ java.lang.String getLabelsOrDefault(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for currentLocationId. */ - com.google.protobuf.ByteString getCurrentLocationIdBytes(); + com.google.protobuf.ByteString + getCurrentLocationIdBytes(); /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The current state of this instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of this instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.redis.v1beta1.Instance.State getState(); /** - * - * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -504,13 +409,10 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ int getRedisConfigsCount(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -528,16 +430,17 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsRedisConfigs( + java.lang.String key); + /** + * Use {@link #getRedisConfigsMap()} instead. */ - boolean containsRedisConfigs(java.lang.String key); - /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Deprecated - java.util.Map getRedisConfigs(); + java.util.Map + getRedisConfigs(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -555,13 +458,11 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getRedisConfigsMap(); + java.util.Map + getRedisConfigsMap(); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -579,18 +480,15 @@ java.lang.String getLabelsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getRedisConfigsOrDefault( +java.lang.String getRedisConfigsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -608,56 +506,42 @@ java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getRedisConfigsOrThrow(java.lang.String key); + + java.lang.String getRedisConfigsOrThrow( + java.lang.String key); /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * Required. The service tier of the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; * @return The tier. */ com.google.cloud.redis.v1beta1.Instance.Tier getTier(); /** - * - * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeGb. */ int getMemorySizeGb(); /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -666,13 +550,10 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** - * - * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -681,14 +562,12 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString + getAuthorizedNetworkBytes(); /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -698,13 +577,10 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The persistenceIamIdentity. */ java.lang.String getPersistenceIamIdentity(); /** - * - * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -714,45 +590,33 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for persistenceIamIdentity. */ - com.google.protobuf.ByteString getPersistenceIamIdentityBytes(); + com.google.protobuf.ByteString + getPersistenceIamIdentityBytes(); /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for connectMode. */ int getConnectModeValue(); /** - * - * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectMode. */ com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode(); /** - * - * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -760,195 +624,136 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The authEnabled. */ boolean getAuthEnabled(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getServerCaCertsList(); + java.util.List + getServerCaCertsList(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getServerCaCertsCount(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getServerCaCertsOrBuilderList(); /** - * - * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index); + com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( + int index); /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for transitEncryptionMode. */ int getTransitEncryptionModeValue(); /** - * - * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; * @return The transitEncryptionMode. */ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode(); /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maintenancePolicy field is set. */ boolean hasMaintenancePolicy(); /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; * @return The maintenancePolicy. */ com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy(); /** - * - * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maintenanceSchedule field is set. */ boolean hasMaintenanceSchedule(); /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maintenanceSchedule. */ com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule(); /** - * - * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder(); /** - * - * *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -958,76 +763,55 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ int getReplicaCount(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getNodesList(); + java.util.List + getNodesList(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getNodesCount(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getNodesOrBuilderList(); /** - * - * *
    * Output only. Info per node.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index); + com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder( + int index); /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -1036,13 +820,10 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpoint. */ java.lang.String getReadEndpoint(); /** - * - * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -1051,92 +832,65 @@ java.lang.String getRedisConfigsOrDefault(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for readEndpoint. */ - com.google.protobuf.ByteString getReadEndpointBytes(); + com.google.protobuf.ByteString + getReadEndpointBytes(); /** - * - * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The readEndpointPort. */ int getReadEndpointPort(); /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for readReplicasMode. */ int getReadReplicasModeValue(); /** - * - * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The readReplicasMode. */ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode(); /** - * - * *
    * Optional. Persistence configuration parameters
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the persistenceConfig field is set. */ boolean hasPersistenceConfig(); /** - * - * *
    * Optional. Persistence configuration parameters
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; * @return The persistenceConfig. */ com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig(); /** - * - * *
    * Optional. Persistence configuration parameters
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java similarity index 71% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java index 7afcb682..051a50f6 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListInstancesRequest( 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; - } - 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) { @@ -104,43 +85,36 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesRequest.class, - com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesRequest.class, com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 @@ -149,33 +123,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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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 { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -198,7 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,15 +178,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -226,30 +192,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; } } /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * 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 { @@ -258,7 +224,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +235,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -306,17 +273,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.redis.v1beta1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ListInstancesRequest other = - (com.google.cloud.redis.v1beta1.ListInstancesRequest) obj; + com.google.cloud.redis.v1beta1.ListInstancesRequest other = (com.google.cloud.redis.v1beta1.ListInstancesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -340,126 +309,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ListInstancesRequest) com.google.cloud.redis.v1beta1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesRequest.class, - com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesRequest.class, com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ListInstancesRequest.newBuilder() @@ -467,15 +427,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(); @@ -489,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -510,8 +471,7 @@ public com.google.cloud.redis.v1beta1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ListInstancesRequest buildPartial() { - com.google.cloud.redis.v1beta1.ListInstancesRequest result = - new com.google.cloud.redis.v1beta1.ListInstancesRequest(this); + com.google.cloud.redis.v1beta1.ListInstancesRequest result = new com.google.cloud.redis.v1beta1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -523,39 +483,38 @@ public com.google.cloud.redis.v1beta1.ListInstancesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -563,8 +522,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ListInstancesRequest other) { - if (other == com.google.cloud.redis.v1beta1.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,8 +553,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,24 +565,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.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; @@ -634,25 +587,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string parent = 1 [(.google.api.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 { @@ -660,82 +610,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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_ ; /** - * - * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -746,7 +681,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -754,8 +688,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -766,19 +698,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; } /** - * - * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -789,11 +718,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -801,21 +729,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; @@ -824,22 +750,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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 { @@ -847,71 +772,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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); } @@ -921,12 +839,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesRequest) private static final com.google.cloud.redis.v1beta1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ListInstancesRequest(); } @@ -935,16 +853,16 @@ public static com.google.cloud.redis.v1beta1.ListInstancesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -959,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java index f9704d18..ebead2cb 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java @@ -1,64 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string parent = 1 [(.google.api.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(); /** - * - * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -69,35 +42,29 @@ public interface ListInstancesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java similarity index 80% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java index 3be396d4..1afdb483 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add( - input.readMessage( - com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instances_.add( + input.readMessage(com.google.cloud.redis.v1beta1.Instance.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) { @@ -115,7 +94,8 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -127,27 +107,22 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesResponse.class, - com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesResponse.class, com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -168,8 +143,6 @@ public java.util.List getInstancesList(
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -186,13 +159,11 @@ public java.util.List getInstancesList(
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -213,8 +184,6 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -235,8 +204,6 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -253,22 +220,20 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+  public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+      int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -277,30 +242,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; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -311,42 +276,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. */ @@ -354,23 +311,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; @@ -382,7 +336,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 < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -402,7 +357,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -423,17 +379,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.redis.v1beta1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ListInstancesResponse other = - (com.google.cloud.redis.v1beta1.ListInstancesResponse) obj; + com.google.cloud.redis.v1beta1.ListInstancesResponse other = (com.google.cloud.redis.v1beta1.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) 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; } @@ -461,126 +419,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ListInstancesResponse) com.google.cloud.redis.v1beta1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesResponse.class, - com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesResponse.class, com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ListInstancesResponse.newBuilder() @@ -588,17 +537,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) { getInstancesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -616,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -637,8 +586,7 @@ public com.google.cloud.redis.v1beta1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ListInstancesResponse buildPartial() { - com.google.cloud.redis.v1beta1.ListInstancesResponse result = - new com.google.cloud.redis.v1beta1.ListInstancesResponse(this); + com.google.cloud.redis.v1beta1.ListInstancesResponse result = new com.google.cloud.redis.v1beta1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -663,39 +611,38 @@ public com.google.cloud.redis.v1beta1.ListInstancesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -703,8 +650,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ListInstancesResponse other) { - if (other == com.google.cloud.redis.v1beta1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -723,10 +669,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.ListInstancesResponse ot instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -765,8 +710,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -775,28 +719,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, - com.google.cloud.redis.v1beta1.Instance.Builder, - com.google.cloud.redis.v1beta1.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -820,8 +757,6 @@ public java.util.List getInstancesList(
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -845,8 +780,6 @@ public int getInstancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -870,8 +803,6 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -887,7 +818,8 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public Builder setInstances(int index, com.google.cloud.redis.v1beta1.Instance value) {
+    public Builder setInstances(
+        int index, com.google.cloud.redis.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -901,8 +833,6 @@ public Builder setInstances(int index, com.google.cloud.redis.v1beta1.Instance v
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -930,8 +860,6 @@ public Builder setInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -961,8 +889,6 @@ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -978,7 +904,8 @@ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance value) {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public Builder addInstances(int index, com.google.cloud.redis.v1beta1.Instance value) {
+    public Builder addInstances(
+        int index, com.google.cloud.redis.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -992,8 +919,6 @@ public Builder addInstances(int index, com.google.cloud.redis.v1beta1.Instance v
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1009,7 +934,8 @@ public Builder addInstances(int index, com.google.cloud.redis.v1beta1.Instance v
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public Builder addInstances(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) {
+    public Builder addInstances(
+        com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -1020,8 +946,6 @@ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1049,8 +973,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1070,7 +992,8 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -1078,8 +1001,6 @@ public Builder addAllInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1106,8 +1027,6 @@ public Builder clearInstances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1134,8 +1053,6 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1151,12 +1068,11 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1beta1.Instance.Builder getInstancesBuilder(int index) {
+    public com.google.cloud.redis.v1beta1.Instance.Builder getInstancesBuilder(
+        int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1172,16 +1088,14 @@ public com.google.cloud.redis.v1beta1.Instance.Builder getInstancesBuilder(int i
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+    public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+        int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);
-      } else {
+        return instances_.get(index);  } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1197,8 +1111,8 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(in
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesOrBuilderList() {
+    public java.util.List 
+         getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1206,8 +1120,6 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(in
       }
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1224,12 +1136,10 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(in
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
     public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder()
-          .addBuilder(com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder().addBuilder(
+          com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1245,13 +1155,12 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(int index) {
-      return getInstancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
+    public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(
+        int index) {
+      return getInstancesFieldBuilder().addBuilder(
+          index, com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1267,23 +1176,20 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(int i
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesBuilderList() {
+    public java.util.List 
+         getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.redis.v1beta1.Instance,
-            com.google.cloud.redis.v1beta1.Instance.Builder,
-            com.google.cloud.redis.v1beta1.InstanceOrBuilder>
+        com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> 
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.redis.v1beta1.Instance,
-                com.google.cloud.redis.v1beta1.Instance.Builder,
-                com.google.cloud.redis.v1beta1.InstanceOrBuilder>(
-                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder>(
+                instances_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1291,21 +1197,19 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(int i
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1314,22 +1218,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1337,115 +1240,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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. */ @@ -1453,90 +1339,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() { @@ -1546,30 +1422,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); } @@ -1579,12 +1453,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesResponse) private static final com.google.cloud.redis.v1beta1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ListInstancesResponse(); } @@ -1593,16 +1467,16 @@ public static com.google.cloud.redis.v1beta1.ListInstancesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1617,4 +1491,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java similarity index 83% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java index d2e27cc6..4c12a400 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -41,10 +23,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
-  java.util.List getInstancesList();
+  java.util.List 
+      getInstancesList();
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -62,8 +43,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.redis.v1beta1.Instance getInstances(int index);
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -81,8 +60,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getInstancesCount();
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -98,11 +75,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
-  java.util.List
+  java.util.List 
       getInstancesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -118,83 +93,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
-  com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index);
+  com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java similarity index 61% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java index 82d432f4..9c5ff204 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * This location metadata represents additional configuration options for a
  * given location where a Redis instance may be created. All fields are output
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.LocationMetadata}
  */
-public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LocationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.LocationMetadata)
     LocationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LocationMetadata.newBuilder() to construct.
   private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LocationMetadata() {}
+  private LocationMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LocationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LocationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,32 +56,26 @@ private LocationMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                availableZones_ =
-                    com.google.protobuf.MapField.newMapField(
-                        AvailableZonesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry<
-                      java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
-                  availableZones__ =
-                      input.readMessage(
-                          AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              availableZones_
-                  .getMutableMap()
-                  .put(availableZones__.getKey(), availableZones__.getValue());
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              availableZones_ = com.google.protobuf.MapField.newMapField(
+                  AvailableZonesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            availableZones__ = input.readMessage(
+                AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            availableZones_.getMutableMap().put(
+                availableZones__.getKey(), availableZones__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -105,62 +83,54 @@ private LocationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_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 1:
         return internalGetAvailableZones();
       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.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.LocationMetadata.class,
-            com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
+            com.google.cloud.redis.v1beta1.LocationMetadata.class, com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
   }
 
   public static final int AVAILABLE_ZONES_FIELD_NUMBER = 1;
-
   private static final class AvailableZonesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
-        defaultEntry =
+        java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata> defaultEntry =
             com.google.protobuf.MapEntry
-                .newDefaultInstance(
-                    com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-                        .internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor,
-                    com.google.protobuf.WireFormat.FieldType.STRING,
-                    "",
-                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                    com.google.cloud.redis.v1beta1.ZoneMetadata.getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.redis.v1beta1.ZoneMetadata.getDefaultInstance());
   }
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
-      availableZones_;
-
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
-      internalGetAvailableZones() {
+      java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata> availableZones_;
+  private com.google.protobuf.MapField
+  internalGetAvailableZones() {
     if (availableZones_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           AvailableZonesDefaultEntryHolder.defaultEntry);
@@ -172,8 +142,6 @@ public int getAvailableZonesCount() {
     return internalGetAvailableZones().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -181,27 +149,24 @@ public int getAvailableZonesCount() {
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsAvailableZones(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAvailableZones( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAvailableZones().getMap().containsKey(key); } - /** Use {@link #getAvailableZonesMap()} instead. */ + /** + * Use {@link #getAvailableZonesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAvailableZones() { + public java.util.Map getAvailableZones() { return getAvailableZonesMap(); } /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -209,18 +174,14 @@ public boolean containsAvailableZones(java.lang.String key) {
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getAvailableZonesMap() { + + public java.util.Map getAvailableZonesMap() { return internalGetAvailableZones().getMap(); } /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -228,23 +189,19 @@ public boolean containsAvailableZones(java.lang.String key) {
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -252,16 +209,13 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -271,7 +225,6 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,9 +236,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAvailableZones(), AvailableZonesDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAvailableZones(), + AvailableZonesDefaultEntryHolder.defaultEntry, + 1); unknownFields.writeTo(output); } @@ -295,16 +253,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetAvailableZones().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetAvailableZones().getMap().entrySet()) { com.google.protobuf.MapEntry - availableZones__ = - AvailableZonesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, availableZones__); + availableZones__ = AvailableZonesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, availableZones__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -314,15 +271,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.redis.v1beta1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.LocationMetadata other = - (com.google.cloud.redis.v1beta1.LocationMetadata) obj; + com.google.cloud.redis.v1beta1.LocationMetadata other = (com.google.cloud.redis.v1beta1.LocationMetadata) obj; - if (!internalGetAvailableZones().equals(other.internalGetAvailableZones())) return false; + if (!internalGetAvailableZones().equals( + other.internalGetAvailableZones())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -343,104 +300,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.LocationMetadata 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.redis.v1beta1.LocationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * This location metadata represents additional configuration options for a
    * given location where a Redis instance may be created. All fields are output
@@ -450,43 +400,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.LocationMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.LocationMetadata)
       com.google.cloud.redis.v1beta1.LocationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetAvailableZones();
         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 1:
           return internalGetMutableAvailableZones();
         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.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.LocationMetadata.class,
-              com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
+              com.google.cloud.redis.v1beta1.LocationMetadata.class, com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.LocationMetadata.newBuilder()
@@ -494,15 +444,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();
@@ -511,9 +462,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -532,8 +483,7 @@ public com.google.cloud.redis.v1beta1.LocationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.LocationMetadata buildPartial() {
-      com.google.cloud.redis.v1beta1.LocationMetadata result =
-          new com.google.cloud.redis.v1beta1.LocationMetadata(this);
+      com.google.cloud.redis.v1beta1.LocationMetadata result = new com.google.cloud.redis.v1beta1.LocationMetadata(this);
       int from_bitField0_ = bitField0_;
       result.availableZones_ = internalGetAvailableZones();
       result.availableZones_.makeImmutable();
@@ -545,39 +495,38 @@ public com.google.cloud.redis.v1beta1.LocationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.LocationMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.LocationMetadata) other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.LocationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -585,9 +534,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1beta1.LocationMetadata other) {
-      if (other == com.google.cloud.redis.v1beta1.LocationMetadata.getDefaultInstance())
-        return this;
-      internalGetMutableAvailableZones().mergeFrom(other.internalGetAvailableZones());
+      if (other == com.google.cloud.redis.v1beta1.LocationMetadata.getDefaultInstance()) return this;
+      internalGetMutableAvailableZones().mergeFrom(
+          other.internalGetAvailableZones());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -616,31 +565,24 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
-        availableZones_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
-        internalGetAvailableZones() {
+        java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata> availableZones_;
+    private com.google.protobuf.MapField
+    internalGetAvailableZones() {
       if (availableZones_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       return availableZones_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
-        internalGetMutableAvailableZones() {
-      onChanged();
-      ;
+    private com.google.protobuf.MapField
+    internalGetMutableAvailableZones() {
+      onChanged();;
       if (availableZones_ == null) {
-        availableZones_ =
-            com.google.protobuf.MapField.newMapField(AvailableZonesDefaultEntryHolder.defaultEntry);
+        availableZones_ = com.google.protobuf.MapField.newMapField(
+            AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       if (!availableZones_.isMutable()) {
         availableZones_ = availableZones_.copy();
@@ -652,8 +594,6 @@ public int getAvailableZonesCount() {
       return internalGetAvailableZones().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -661,27 +601,24 @@ public int getAvailableZonesCount() {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsAvailableZones(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAvailableZones( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAvailableZones().getMap().containsKey(key); } - /** Use {@link #getAvailableZonesMap()} instead. */ + /** + * Use {@link #getAvailableZonesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAvailableZones() { + public java.util.Map getAvailableZones() { return getAvailableZonesMap(); } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -689,18 +626,14 @@ public boolean containsAvailableZones(java.lang.String key) {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getAvailableZonesMap() { + + public java.util.Map getAvailableZonesMap() { return internalGetAvailableZones().getMap(); } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -708,23 +641,19 @@ public boolean containsAvailableZones(java.lang.String key) {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -732,16 +661,13 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -751,12 +677,11 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( } public Builder clearAvailableZones() { - internalGetMutableAvailableZones().getMutableMap().clear(); + internalGetMutableAvailableZones().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -764,26 +689,25 @@ public Builder clearAvailableZones() {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeAvailableZones(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAvailableZones().getMutableMap().remove(key); + + public Builder removeAvailableZones( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAvailableZones().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableAvailableZones() { + getMutableAvailableZones() { return internalGetMutableAvailableZones().getMutableMap(); } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -791,25 +715,21 @@ public Builder removeAvailableZones(java.lang.String key) {
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder putAvailableZones( - java.lang.String key, com.google.cloud.redis.v1beta1.ZoneMetadata value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.redis.v1beta1.ZoneMetadata value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableAvailableZones().getMutableMap().put(key, value); + internalGetMutableAvailableZones().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -817,18 +737,18 @@ public Builder putAvailableZones(
      * creating a Redis instance.
      * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + public Builder putAllAvailableZones( java.util.Map values) { - internalGetMutableAvailableZones().getMutableMap().putAll(values); + internalGetMutableAvailableZones().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); } @@ -838,12 +758,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.LocationMetadata) private static final com.google.cloud.redis.v1beta1.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.LocationMetadata(); } @@ -852,16 +772,16 @@ public static com.google.cloud.redis.v1beta1.LocationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,4 +796,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java similarity index 53% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java index 0588a263..de17f9f3 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface LocationMetadataOrBuilder - extends +public interface LocationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -33,14 +15,10 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getAvailableZonesCount(); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -48,17 +26,17 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsAvailableZones( + java.lang.String key); + /** + * Use {@link #getAvailableZonesMap()} instead. */ - boolean containsAvailableZones(java.lang.String key); - /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Deprecated - java.util.Map getAvailableZones(); + java.util.Map + getAvailableZones(); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -66,15 +44,11 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map - getAvailableZonesMap(); + getAvailableZonesMap(); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -82,19 +56,15 @@ public interface LocationMetadataOrBuilder
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ - com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault( +com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue); +com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue); /** - * - * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -102,9 +72,9 @@ com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key); + + com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java similarity index 66% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java index 54e085b8..42ad643a 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Maintenance policy for an instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.MaintenancePolicy} */ -public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MaintenancePolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.MaintenancePolicy) MaintenancePolicyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MaintenancePolicy.newBuilder() to construct. private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MaintenancePolicy() { description_ = ""; weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private MaintenancePolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MaintenancePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MaintenancePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,64 +55,54 @@ private MaintenancePolicy( 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 (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = 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(); - description_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = - new java.util.ArrayList< - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow>(); - mutable_bitField0_ |= 0x00000001; - } - weeklyMaintenanceWindow_.add( - input.readMessage( - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.parser(), - extensionRegistry)); - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + weeklyMaintenanceWindow_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + weeklyMaintenanceWindow_.add( + input.readMessage(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,7 +110,8 @@ private MaintenancePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); @@ -146,34 +120,27 @@ private MaintenancePolicy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.MaintenancePolicy.class, - com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1beta1.MaintenancePolicy.class, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the policy 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 @@ -181,15 +148,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the policy 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 @@ -197,14 +160,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the policy 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() { @@ -214,15 +174,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -230,15 +186,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -246,14 +198,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -263,15 +212,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -280,30 +226,30 @@ 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; } } /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -312,100 +258,76 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER = 4; - private java.util.List - weeklyMaintenanceWindow_; + private java.util.List weeklyMaintenanceWindow_; /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getWeeklyMaintenanceWindowList() { + public java.util.List getWeeklyMaintenanceWindowList() { return weeklyMaintenanceWindow_; } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getWeeklyMaintenanceWindowOrBuilderList() { return weeklyMaintenanceWindow_; } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getWeeklyMaintenanceWindowCount() { return weeklyMaintenanceWindow_.size(); } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow( - int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { return weeklyMaintenanceWindow_.get(index); } /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder - getWeeklyMaintenanceWindowOrBuilder(int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( + int index) { return weeklyMaintenanceWindow_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -417,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -440,18 +363,19 @@ 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 (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, weeklyMaintenanceWindow_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, weeklyMaintenanceWindow_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -461,25 +385,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.redis.v1beta1.MaintenancePolicy)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.MaintenancePolicy other = - (com.google.cloud.redis.v1beta1.MaintenancePolicy) obj; + com.google.cloud.redis.v1beta1.MaintenancePolicy other = (com.google.cloud.redis.v1beta1.MaintenancePolicy) obj; 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 (!getDescription().equals(other.getDescription())) return false; - if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList())) - return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getWeeklyMaintenanceWindowList() + .equals(other.getWeeklyMaintenanceWindowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -510,127 +436,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.MaintenancePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Maintenance policy for an instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.MaintenancePolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.MaintenancePolicy) com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.MaintenancePolicy.class, - com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1beta1.MaintenancePolicy.class, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder() @@ -638,17 +555,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) { getWeeklyMaintenanceWindowFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -676,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; } @java.lang.Override @@ -697,8 +614,7 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicy build() { @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenancePolicy buildPartial() { - com.google.cloud.redis.v1beta1.MaintenancePolicy result = - new com.google.cloud.redis.v1beta1.MaintenancePolicy(this); + com.google.cloud.redis.v1beta1.MaintenancePolicy result = new com.google.cloud.redis.v1beta1.MaintenancePolicy(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -713,8 +629,7 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicy buildPartial() { result.description_ = description_; if (weeklyMaintenanceWindowBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = - java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); bitField0_ = (bitField0_ & ~0x00000001); } result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindow_; @@ -729,39 +644,38 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.MaintenancePolicy) { - return mergeFrom((com.google.cloud.redis.v1beta1.MaintenancePolicy) other); + return mergeFrom((com.google.cloud.redis.v1beta1.MaintenancePolicy)other); } else { super.mergeFrom(other); return this; @@ -769,8 +683,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.MaintenancePolicy other) { - if (other == com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -799,10 +712,9 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.MaintenancePolicy other) weeklyMaintenanceWindowBuilder_ = null; weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; bitField0_ = (bitField0_ & ~0x00000001); - weeklyMaintenanceWindowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWeeklyMaintenanceWindowFieldBuilder() - : null; + weeklyMaintenanceWindowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWeeklyMaintenanceWindowFieldBuilder() : null; } else { weeklyMaintenanceWindowBuilder_.addAllMessages(other.weeklyMaintenanceWindow_); } @@ -836,63 +748,43 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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) { @@ -908,17 +800,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy 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(); @@ -929,21 +818,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the policy 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; } @@ -955,15 +840,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy 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) { @@ -977,64 +858,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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_; @@ -1042,58 +907,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 time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1109,17 +955,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.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(); @@ -1130,21 +973,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.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; } @@ -1156,15 +995,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1178,64 +1013,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> 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_; @@ -1243,21 +1062,19 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1266,22 +1083,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1289,102 +1105,84 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - private java.util.List - weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); - + private java.util.List weeklyMaintenanceWindow_ = + java.util.Collections.emptyList(); private void ensureWeeklyMaintenanceWindowIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = - new java.util.ArrayList( - weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = new java.util.ArrayList(weeklyMaintenanceWindow_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> - weeklyMaintenanceWindowBuilder_; + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> weeklyMaintenanceWindowBuilder_; /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getWeeklyMaintenanceWindowList() { + public java.util.List getWeeklyMaintenanceWindowList() { if (weeklyMaintenanceWindowBuilder_ == null) { return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); } else { @@ -1392,17 +1190,13 @@ private void ensureWeeklyMaintenanceWindowIsMutable() { } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public int getWeeklyMaintenanceWindowCount() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1412,20 +1206,15 @@ public int getWeeklyMaintenanceWindowCount() { } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow( - int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { return weeklyMaintenanceWindow_.get(index); } else { @@ -1433,17 +1222,13 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenan } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { @@ -1460,17 +1245,13 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1484,20 +1265,15 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addWeeklyMaintenanceWindow( - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { + public Builder addWeeklyMaintenanceWindow(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { if (weeklyMaintenanceWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1511,17 +1287,13 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { @@ -1538,17 +1310,13 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addWeeklyMaintenanceWindow( com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1562,17 +1330,13 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1586,24 +1350,20 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllWeeklyMaintenanceWindow( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (weeklyMaintenanceWindowBuilder_ == null) { ensureWeeklyMaintenanceWindowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeklyMaintenanceWindow_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, weeklyMaintenanceWindow_); onChanged(); } else { weeklyMaintenanceWindowBuilder_.addAllMessages(values); @@ -1611,17 +1371,13 @@ public Builder addAllWeeklyMaintenanceWindow( return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearWeeklyMaintenanceWindow() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1634,17 +1390,13 @@ public Builder clearWeeklyMaintenanceWindow() { return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeWeeklyMaintenanceWindow(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1657,58 +1409,45 @@ public Builder removeWeeklyMaintenanceWindow(int index) { return this; } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder - getWeeklyMaintenanceWindowBuilder(int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder getWeeklyMaintenanceWindowBuilder( + int index) { return getWeeklyMaintenanceWindowFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder - getWeeklyMaintenanceWindowOrBuilder(int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( + int index) { if (weeklyMaintenanceWindowBuilder_ == null) { - return weeklyMaintenanceWindow_.get(index); - } else { + return weeklyMaintenanceWindow_.get(index); } else { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getWeeklyMaintenanceWindowOrBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowOrBuilderList() { if (weeklyMaintenanceWindowBuilder_ != null) { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilderList(); } else { @@ -1716,71 +1455,51 @@ public Builder removeWeeklyMaintenanceWindow(int index) { } } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder - addWeeklyMaintenanceWindowBuilder() { - return getWeeklyMaintenanceWindowFieldBuilder() - .addBuilder(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder() { + return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder - addWeeklyMaintenanceWindowBuilder(int index) { - return getWeeklyMaintenanceWindowFieldBuilder() - .addBuilder( - index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder( + int index) { + return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( + index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** - * - * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getWeeklyMaintenanceWindowBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowBuilderList() { return getWeeklyMaintenanceWindowFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> getWeeklyMaintenanceWindowFieldBuilder() { if (weeklyMaintenanceWindowBuilder_ == null) { - weeklyMaintenanceWindowBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>( + weeklyMaintenanceWindowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>( weeklyMaintenanceWindow_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1789,9 +1508,9 @@ public Builder removeWeeklyMaintenanceWindow(int index) { } return weeklyMaintenanceWindowBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1801,12 +1520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.MaintenancePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.MaintenancePolicy) private static final com.google.cloud.redis.v1beta1.MaintenancePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.MaintenancePolicy(); } @@ -1815,16 +1534,16 @@ public static com.google.cloud.redis.v1beta1.MaintenancePolicy getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenancePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenancePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1839,4 +1558,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.MaintenancePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java similarity index 65% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java index 27b56220..cfe8be29 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java @@ -1,202 +1,139 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface MaintenancePolicyOrBuilder - extends +public interface MaintenancePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.MaintenancePolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time when the policy 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 when the policy 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 when the policy 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 when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getWeeklyMaintenanceWindowList(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getWeeklyMaintenanceWindowCount(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getWeeklyMaintenanceWindowOrBuilderList(); /** - * - * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder - getWeeklyMaintenanceWindowOrBuilder(int index); + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( + int index); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java index f33a54b0..f5cd5da2 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
  * populated.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.MaintenanceSchedule}
  */
-public final class MaintenanceSchedule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MaintenanceSchedule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.MaintenanceSchedule)
     MaintenanceScheduleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MaintenanceSchedule.newBuilder() to construct.
   private MaintenanceSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MaintenanceSchedule() {}
+  private MaintenanceSchedule() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MaintenanceSchedule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MaintenanceSchedule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,63 +53,57 @@ private MaintenanceSchedule(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
+            }
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = 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;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 24:
-            {
-              canReschedule_ = input.readBool();
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (scheduleDeadlineTime_ != null) {
-                subBuilder = scheduleDeadlineTime_.toBuilder();
-              }
-              scheduleDeadlineTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scheduleDeadlineTime_);
-                scheduleDeadlineTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 24: {
+
+            canReschedule_ = input.readBool();
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (scheduleDeadlineTime_ != null) {
+              subBuilder = scheduleDeadlineTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            scheduleDeadlineTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scheduleDeadlineTime_);
+              scheduleDeadlineTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -133,40 +111,34 @@ private MaintenanceSchedule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.MaintenanceSchedule.class,
-            com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
+            com.google.cloud.redis.v1beta1.MaintenanceSchedule.class, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
   }
 
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
-   *
-   *
    * 
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -174,15 +146,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -190,14 +158,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -207,15 +172,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -223,15 +184,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -239,14 +196,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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() { @@ -256,38 +210,29 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int CAN_RESCHEDULE_FIELD_NUMBER = 3; private boolean canReschedule_; /** - * - * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated - public boolean getCanReschedule() { + @java.lang.Deprecated public boolean getCanReschedule() { return canReschedule_; } public static final int SCHEDULE_DEADLINE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp scheduleDeadlineTime_; /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the scheduleDeadlineTime field is set. */ @java.lang.Override @@ -295,36 +240,25 @@ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTime_ != null; } /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The scheduleDeadlineTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleDeadlineTime() { - return scheduleDeadlineTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; } /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { @@ -332,7 +266,6 @@ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -367,17 +301,20 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (canReschedule_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, canReschedule_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, canReschedule_); } if (scheduleDeadlineTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScheduleDeadlineTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getScheduleDeadlineTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -387,26 +324,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.redis.v1beta1.MaintenanceSchedule)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.MaintenanceSchedule other = - (com.google.cloud.redis.v1beta1.MaintenanceSchedule) obj; + com.google.cloud.redis.v1beta1.MaintenanceSchedule other = (com.google.cloud.redis.v1beta1.MaintenanceSchedule) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (getCanReschedule() != other.getCanReschedule()) return false; + if (getCanReschedule() + != other.getCanReschedule()) return false; if (hasScheduleDeadlineTime() != other.hasScheduleDeadlineTime()) return false; if (hasScheduleDeadlineTime()) { - if (!getScheduleDeadlineTime().equals(other.getScheduleDeadlineTime())) return false; + if (!getScheduleDeadlineTime() + .equals(other.getScheduleDeadlineTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -428,7 +368,8 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + CAN_RESCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanReschedule()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanReschedule()); if (hasScheduleDeadlineTime()) { hash = (37 * hash) + SCHEDULE_DEADLINE_TIME_FIELD_NUMBER; hash = (53 * hash) + getScheduleDeadlineTime().hashCode(); @@ -439,103 +380,96 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.MaintenanceSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
    * populated.
@@ -543,23 +477,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.MaintenanceSchedule}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.MaintenanceSchedule)
       com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.MaintenanceSchedule.class,
-              com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
+              com.google.cloud.redis.v1beta1.MaintenanceSchedule.class, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.MaintenanceSchedule.newBuilder()
@@ -567,15 +499,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();
@@ -603,9 +536,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
@@ -624,8 +557,7 @@ public com.google.cloud.redis.v1beta1.MaintenanceSchedule build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.MaintenanceSchedule buildPartial() {
-      com.google.cloud.redis.v1beta1.MaintenanceSchedule result =
-          new com.google.cloud.redis.v1beta1.MaintenanceSchedule(this);
+      com.google.cloud.redis.v1beta1.MaintenanceSchedule result = new com.google.cloud.redis.v1beta1.MaintenanceSchedule(this);
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
       } else {
@@ -650,39 +582,38 @@ public com.google.cloud.redis.v1beta1.MaintenanceSchedule buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.MaintenanceSchedule) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.MaintenanceSchedule) other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.MaintenanceSchedule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -690,8 +621,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1beta1.MaintenanceSchedule other) {
-      if (other == com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance()) return this;
       if (other.hasStartTime()) {
         mergeStartTime(other.getStartTime());
       }
@@ -723,8 +653,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.redis.v1beta1.MaintenanceSchedule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.redis.v1beta1.MaintenanceSchedule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -736,35 +665,24 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        startTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -775,14 +693,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -798,16 +713,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -818,20 +731,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -843,14 +753,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -864,59 +771,48 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -924,35 +820,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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() { @@ -963,14 +848,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -986,16 +868,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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(); @@ -1006,20 +886,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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; } @@ -1031,14 +908,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -1052,120 +926,97 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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_; } - private boolean canReschedule_; + private boolean canReschedule_ ; /** - * - * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated - public boolean getCanReschedule() { + @java.lang.Deprecated public boolean getCanReschedule() { return canReschedule_; } /** - * - * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @param value The canReschedule to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCanReschedule(boolean value) { - + @java.lang.Deprecated public Builder setCanReschedule(boolean value) { + canReschedule_ = value; onChanged(); return this; } /** - * - * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearCanReschedule() { - + @java.lang.Deprecated public Builder clearCanReschedule() { + canReschedule_ = false; onChanged(); return this; @@ -1173,61 +1024,42 @@ public Builder clearCanReschedule() { private com.google.protobuf.Timestamp scheduleDeadlineTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleDeadlineTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleDeadlineTimeBuilder_; /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the scheduleDeadlineTime field is set. */ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTimeBuilder_ != null || scheduleDeadlineTime_ != null; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The scheduleDeadlineTime. */ public com.google.protobuf.Timestamp getScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { - return scheduleDeadlineTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; } else { return scheduleDeadlineTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1243,18 +1075,15 @@ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleDeadlineTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleDeadlineTimeBuilder_ == null) { scheduleDeadlineTime_ = builderForValue.build(); onChanged(); @@ -1265,24 +1094,18 @@ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp.Builder bui return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { if (scheduleDeadlineTime_ != null) { scheduleDeadlineTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_).mergeFrom(value).buildPartial(); } else { scheduleDeadlineTime_ = value; } @@ -1294,16 +1117,12 @@ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1317,74 +1136,58 @@ public Builder clearScheduleDeadlineTime() { return this; } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getScheduleDeadlineTimeBuilder() { - + onChanged(); return getScheduleDeadlineTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { if (scheduleDeadlineTimeBuilder_ != null) { return scheduleDeadlineTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleDeadlineTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; } } /** - * - * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.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> getScheduleDeadlineTimeFieldBuilder() { if (scheduleDeadlineTimeBuilder_ == null) { - scheduleDeadlineTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleDeadlineTime(), getParentForChildren(), isClean()); + scheduleDeadlineTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduleDeadlineTime(), + getParentForChildren(), + isClean()); scheduleDeadlineTime_ = null; } return scheduleDeadlineTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1394,12 +1197,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.MaintenanceSchedule) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.MaintenanceSchedule) private static final com.google.cloud.redis.v1beta1.MaintenanceSchedule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.MaintenanceSchedule(); } @@ -1408,16 +1211,16 @@ public static com.google.cloud.redis.v1beta1.MaintenanceSchedule getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceSchedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenanceSchedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceSchedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1432,4 +1235,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.MaintenanceSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java similarity index 64% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java index ef4a422a..6e35dfdf 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java @@ -1,161 +1,105 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface MaintenanceScheduleOrBuilder - extends +public interface MaintenanceScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.MaintenanceSchedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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(); /** - * - * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See - * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. + * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return The canReschedule. */ - @java.lang.Deprecated - boolean getCanReschedule(); + @java.lang.Deprecated boolean getCanReschedule(); /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the scheduleDeadlineTime field is set. */ boolean hasScheduleDeadlineTime(); /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The scheduleDeadlineTime. */ com.google.protobuf.Timestamp getScheduleDeadlineTime(); /** - * - * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java similarity index 71% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java index 597455df..92329458 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Node specific properties.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.NodeInfo} */ -public final class NodeInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NodeInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.NodeInfo) NodeInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NodeInfo.newBuilder() to construct. private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NodeInfo() { id_ = ""; zone_ = ""; @@ -44,15 +26,16 @@ private NodeInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NodeInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private NodeInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - zone_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + zone_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private NodeInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.NodeInfo.class, - com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); + com.google.cloud.redis.v1beta1.NodeInfo.class, com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ @java.lang.Override @@ -189,29 +162,29 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getZoneBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -262,15 +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.redis.v1beta1.NodeInfo)) { return super.equals(obj); } com.google.cloud.redis.v1beta1.NodeInfo other = (com.google.cloud.redis.v1beta1.NodeInfo) obj; - if (!getId().equals(other.getId())) return false; - if (!getZone().equals(other.getZone())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getZone() + .equals(other.getZone())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,127 +266,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.NodeInfo 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.redis.v1beta1.NodeInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.NodeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Node specific properties.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.NodeInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.NodeInfo) com.google.cloud.redis.v1beta1.NodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.NodeInfo.class, - com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); + com.google.cloud.redis.v1beta1.NodeInfo.class, com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.NodeInfo.newBuilder() @@ -419,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(); @@ -439,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; } @java.lang.Override @@ -460,8 +427,7 @@ public com.google.cloud.redis.v1beta1.NodeInfo build() { @java.lang.Override public com.google.cloud.redis.v1beta1.NodeInfo buildPartial() { - com.google.cloud.redis.v1beta1.NodeInfo result = - new com.google.cloud.redis.v1beta1.NodeInfo(this); + com.google.cloud.redis.v1beta1.NodeInfo result = new com.google.cloud.redis.v1beta1.NodeInfo(this); result.id_ = id_; result.zone_ = zone_; onBuilt(); @@ -472,39 +438,38 @@ public com.google.cloud.redis.v1beta1.NodeInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.NodeInfo) { - return mergeFrom((com.google.cloud.redis.v1beta1.NodeInfo) other); + return mergeFrom((com.google.cloud.redis.v1beta1.NodeInfo)other); } else { super.mergeFrom(other); return this; @@ -552,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -574,21 +537,20 @@ public java.lang.String getId() { } } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -596,61 +558,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -658,20 +613,18 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object zone_ = ""; /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -680,21 +633,20 @@ public java.lang.String getZone() { } } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for zone. */ - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -702,68 +654,61 @@ public com.google.protobuf.ByteString getZoneBytes() { } } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone(java.lang.String value) { + public Builder setZone( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** - * - * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes(com.google.protobuf.ByteString value) { + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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); } @@ -773,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.NodeInfo) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.NodeInfo) private static final com.google.cloud.redis.v1beta1.NodeInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.NodeInfo(); } @@ -787,16 +732,16 @@ public static com.google.cloud.redis.v1beta1.NodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -811,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.NodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java similarity index 58% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java index fd5c5ba2..609a3241 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface NodeInfoOrBuilder - extends +public interface NodeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.NodeInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ java.lang.String getZone(); /** - * - * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for zone. */ - com.google.protobuf.ByteString getZoneBytes(); + com.google.protobuf.ByteString + getZoneBytes(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java similarity index 71% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java index 48f58b9b..0dc92fe1 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * The output content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,27 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.redis.v1beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.redis.v1beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.redis.v1beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.redis.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.redis.v1beta1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage(com.google.cloud.redis.v1beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.OutputConfig.class, - com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); + com.google.cloud.redis.v1beta1.OutputConfig.class, com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -147,34 +123,29 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -182,26 +153,21 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; + return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; } return com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
@@ -211,13 +177,12 @@ public com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; + return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; } return com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,7 +194,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1beta1.GcsDestination) destination_); } @@ -243,9 +209,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.redis.v1beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.redis.v1beta1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -255,18 +220,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.redis.v1beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.OutputConfig other = - (com.google.cloud.redis.v1beta1.OutputConfig) obj; + com.google.cloud.redis.v1beta1.OutputConfig other = (com.google.cloud.redis.v1beta1.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -295,127 +260,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.OutputConfig 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.redis.v1beta1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 output content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.OutputConfig) com.google.cloud.redis.v1beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.OutputConfig.class, - com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); + com.google.cloud.redis.v1beta1.OutputConfig.class, com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.OutputConfig.newBuilder() @@ -423,15 +379,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 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; } @java.lang.Override @@ -462,8 +419,7 @@ public com.google.cloud.redis.v1beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.redis.v1beta1.OutputConfig buildPartial() { - com.google.cloud.redis.v1beta1.OutputConfig result = - new com.google.cloud.redis.v1beta1.OutputConfig(this); + com.google.cloud.redis.v1beta1.OutputConfig result = new com.google.cloud.redis.v1beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -480,39 +436,38 @@ public com.google.cloud.redis.v1beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.OutputConfig) { - return mergeFrom((com.google.cloud.redis.v1beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.redis.v1beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -522,15 +477,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1beta1.OutputConfig other) { if (other == com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -560,12 +513,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -575,20 +528,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsDestination, - com.google.cloud.redis.v1beta1.GcsDestination.Builder, - com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.redis.v1beta1.GcsDestination, com.google.cloud.redis.v1beta1.GcsDestination.Builder, com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -596,14 +544,11 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -621,8 +566,6 @@ public com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -643,8 +586,6 @@ public Builder setGcsDestination(com.google.cloud.redis.v1beta1.GcsDestination v return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -663,8 +604,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -673,13 +612,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.redis.v1beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.redis.v1beta1.GcsDestination.newBuilder( - (com.google.cloud.redis.v1beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.redis.v1beta1.GcsDestination.newBuilder((com.google.cloud.redis.v1beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -695,8 +631,6 @@ public Builder mergeGcsDestination(com.google.cloud.redis.v1beta1.GcsDestination return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -720,8 +654,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -732,8 +664,6 @@ public com.google.cloud.redis.v1beta1.GcsDestination.Builder getGcsDestinationBu return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -752,8 +682,6 @@ public com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder getGcsDestinationO } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * 
@@ -761,32 +689,26 @@ public com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder getGcsDestinationO * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsDestination, - com.google.cloud.redis.v1beta1.GcsDestination.Builder, - com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> + com.google.cloud.redis.v1beta1.GcsDestination, com.google.cloud.redis.v1beta1.GcsDestination.Builder, com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsDestination, - com.google.cloud.redis.v1beta1.GcsDestination.Builder, - com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.GcsDestination, com.google.cloud.redis.v1beta1.GcsDestination.Builder, com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder>( (com.google.cloud.redis.v1beta1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -796,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.OutputConfig) private static final com.google.cloud.redis.v1beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.OutputConfig(); } @@ -810,16 +732,16 @@ public static com.google.cloud.redis.v1beta1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java similarity index 63% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java index 1579c9b4..97a9d74f 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * 
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java similarity index 65% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java index 9ae07e46..62dbe0ac 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Configuration of the persistence functionality.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.PersistenceConfig} */ -public final class PersistenceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PersistenceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.PersistenceConfig) PersistenceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PersistenceConfig.newBuilder() to construct. private PersistenceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PersistenceConfig() { persistenceMode_ = 0; rdbSnapshotPeriod_ = 0; @@ -44,15 +26,16 @@ private PersistenceConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PersistenceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PersistenceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,57 +54,51 @@ private PersistenceConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - persistenceMode_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + persistenceMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - rdbSnapshotPeriod_ = rawValue; - break; + rdbSnapshotPeriod_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (rdbNextSnapshotTime_ != null) { + subBuilder = rdbNextSnapshotTime_.toBuilder(); + } + rdbNextSnapshotTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rdbNextSnapshotTime_); + rdbNextSnapshotTime_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (rdbNextSnapshotTime_ != null) { - subBuilder = rdbNextSnapshotTime_.toBuilder(); - } - rdbNextSnapshotTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rdbNextSnapshotTime_); - rdbNextSnapshotTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (rdbSnapshotStartTime_ != null) { + subBuilder = rdbSnapshotStartTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (rdbSnapshotStartTime_ != null) { - subBuilder = rdbSnapshotStartTime_.toBuilder(); - } - rdbSnapshotStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rdbSnapshotStartTime_); - rdbSnapshotStartTime_ = subBuilder.buildPartial(); - } - - break; + rdbSnapshotStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rdbSnapshotStartTime_); + rdbSnapshotStartTime_ = 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) { @@ -129,41 +106,36 @@ private PersistenceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.PersistenceConfig.class, - com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); + com.google.cloud.redis.v1beta1.PersistenceConfig.class, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); } /** - * - * *
    * Available Persistence modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode} */ - public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { + public enum PersistenceMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -172,8 +144,6 @@ public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { */ PERSISTENCE_MODE_UNSPECIFIED(0), /** - * - * *
      * Persistence is disabled for the instance,
      * and any existing snapshots are deleted.
@@ -183,8 +153,6 @@ public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISABLED(1),
     /**
-     *
-     *
      * 
      * RDB based Persistence is enabled.
      * 
@@ -196,8 +164,6 @@ public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -206,8 +172,6 @@ public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERSISTENCE_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Persistence is disabled for the instance,
      * and any existing snapshots are deleted.
@@ -217,8 +181,6 @@ public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * RDB based Persistence is enabled.
      * 
@@ -227,6 +189,7 @@ public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RDB_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -251,42 +214,39 @@ public static PersistenceMode valueOf(int value) { */ public static PersistenceMode forNumber(int value) { switch (value) { - case 0: - return PERSISTENCE_MODE_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return RDB; - default: - return null; + case 0: return PERSISTENCE_MODE_UNSPECIFIED; + case 1: return DISABLED; + case 2: return RDB; + 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< + PersistenceMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PersistenceMode findValueByNumber(int number) { + return PersistenceMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PersistenceMode findValueByNumber(int number) { - return PersistenceMode.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.redis.v1beta1.PersistenceConfig.getDescriptor().getEnumTypes().get(0); } @@ -295,7 +255,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static PersistenceMode 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; @@ -313,18 +274,15 @@ private PersistenceMode(int value) { } /** - * - * *
    * Available snapshot periods for scheduling.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod} */ - public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { + public enum SnapshotPeriod + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -333,8 +291,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ SNAPSHOT_PERIOD_UNSPECIFIED(0), /** - * - * *
      * Snapshot every 1 hour.
      * 
@@ -343,8 +299,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ ONE_HOUR(3), /** - * - * *
      * Snapshot every 6 hours.
      * 
@@ -353,8 +307,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ SIX_HOURS(4), /** - * - * *
      * Snapshot every 12 hours.
      * 
@@ -363,8 +315,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ TWELVE_HOURS(5), /** - * - * *
      * Snapshot every 24 hours.
      * 
@@ -376,8 +326,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -386,8 +334,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SNAPSHOT_PERIOD_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Snapshot every 1 hour.
      * 
@@ -396,8 +342,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ONE_HOUR_VALUE = 3; /** - * - * *
      * Snapshot every 6 hours.
      * 
@@ -406,8 +350,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SIX_HOURS_VALUE = 4; /** - * - * *
      * Snapshot every 12 hours.
      * 
@@ -416,8 +358,6 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TWELVE_HOURS_VALUE = 5; /** - * - * *
      * Snapshot every 24 hours.
      * 
@@ -426,6 +366,7 @@ public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TWENTY_FOUR_HOURS_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -450,53 +391,51 @@ public static SnapshotPeriod valueOf(int value) { */ public static SnapshotPeriod forNumber(int value) { switch (value) { - case 0: - return SNAPSHOT_PERIOD_UNSPECIFIED; - case 3: - return ONE_HOUR; - case 4: - return SIX_HOURS; - case 5: - return TWELVE_HOURS; - case 6: - return TWENTY_FOUR_HOURS; - default: - return null; + case 0: return SNAPSHOT_PERIOD_UNSPECIFIED; + case 3: return ONE_HOUR; + case 4: return SIX_HOURS; + case 5: return TWELVE_HOURS; + case 6: return TWENTY_FOUR_HOURS; + 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< + SnapshotPeriod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SnapshotPeriod findValueByNumber(int number) { + return SnapshotPeriod.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotPeriod findValueByNumber(int number) { - return SnapshotPeriod.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.redis.v1beta1.PersistenceConfig.getDescriptor().getEnumTypes().get(1); } private static final SnapshotPeriod[] VALUES = values(); - public static SnapshotPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SnapshotPeriod 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; @@ -516,52 +455,35 @@ private SnapshotPeriod(int value) { public static final int PERSISTENCE_MODE_FIELD_NUMBER = 1; private int persistenceMode_; /** - * - * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for persistenceMode. */ - @java.lang.Override - public int getPersistenceModeValue() { + @java.lang.Override public int getPersistenceModeValue() { return persistenceMode_; } /** - * - * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The persistenceMode. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode() { + @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = - com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf(persistenceMode_); - return result == null - ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf(persistenceMode_); + return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED : result; } public static final int RDB_SNAPSHOT_PERIOD_FIELD_NUMBER = 2; private int rdbSnapshotPeriod_; /** - * - * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -571,19 +493,13 @@ public com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersi
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for rdbSnapshotPeriod. */ - @java.lang.Override - public int getRdbSnapshotPeriodValue() { + @java.lang.Override public int getRdbSnapshotPeriodValue() { return rdbSnapshotPeriod_; } /** - * - * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -593,35 +509,23 @@ public int getRdbSnapshotPeriodValue() {
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The rdbSnapshotPeriod. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod() { + @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = - com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf(rdbSnapshotPeriod_); - return result == null - ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf(rdbSnapshotPeriod_); + return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED : result; } public static final int RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp rdbNextSnapshotTime_; /** - * - * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the rdbNextSnapshotTime field is set. */ @java.lang.Override @@ -629,34 +533,23 @@ public boolean hasRdbNextSnapshotTime() { return rdbNextSnapshotTime_ != null; } /** - * - * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The rdbNextSnapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRdbNextSnapshotTime() { - return rdbNextSnapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : rdbNextSnapshotTime_; + return rdbNextSnapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbNextSnapshotTime_; } /** - * - * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() { @@ -666,18 +559,13 @@ public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() public static final int RDB_SNAPSHOT_START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp rdbSnapshotStartTime_; /** - * - * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the rdbSnapshotStartTime field is set. */ @java.lang.Override @@ -685,38 +573,27 @@ public boolean hasRdbSnapshotStartTime() { return rdbSnapshotStartTime_ != null; } /** - * - * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The rdbSnapshotStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { - return rdbSnapshotStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : rdbSnapshotStartTime_; + return rdbSnapshotStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbSnapshotStartTime_; } /** - * - * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { @@ -724,7 +601,6 @@ public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -736,17 +612,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (persistenceMode_ - != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode - .PERSISTENCE_MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (persistenceMode_ != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.PERSISTENCE_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, persistenceMode_); } - if (rdbSnapshotPeriod_ - != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod - .SNAPSHOT_PERIOD_UNSPECIFIED - .getNumber()) { + if (rdbSnapshotPeriod_ != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.SNAPSHOT_PERIOD_UNSPECIFIED.getNumber()) { output.writeEnum(2, rdbSnapshotPeriod_); } if (rdbNextSnapshotTime_ != null) { @@ -764,24 +635,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (persistenceMode_ - != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode - .PERSISTENCE_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, persistenceMode_); - } - if (rdbSnapshotPeriod_ - != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod - .SNAPSHOT_PERIOD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rdbSnapshotPeriod_); + if (persistenceMode_ != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.PERSISTENCE_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, persistenceMode_); + } + if (rdbSnapshotPeriod_ != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.SNAPSHOT_PERIOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, rdbSnapshotPeriod_); } if (rdbNextSnapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRdbNextSnapshotTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRdbNextSnapshotTime()); } if (rdbSnapshotStartTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRdbSnapshotStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRdbSnapshotStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -791,23 +659,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.redis.v1beta1.PersistenceConfig)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.PersistenceConfig other = - (com.google.cloud.redis.v1beta1.PersistenceConfig) obj; + com.google.cloud.redis.v1beta1.PersistenceConfig other = (com.google.cloud.redis.v1beta1.PersistenceConfig) obj; if (persistenceMode_ != other.persistenceMode_) return false; if (rdbSnapshotPeriod_ != other.rdbSnapshotPeriod_) return false; if (hasRdbNextSnapshotTime() != other.hasRdbNextSnapshotTime()) return false; if (hasRdbNextSnapshotTime()) { - if (!getRdbNextSnapshotTime().equals(other.getRdbNextSnapshotTime())) return false; + if (!getRdbNextSnapshotTime() + .equals(other.getRdbNextSnapshotTime())) return false; } if (hasRdbSnapshotStartTime() != other.hasRdbSnapshotStartTime()) return false; if (hasRdbSnapshotStartTime()) { - if (!getRdbSnapshotStartTime().equals(other.getRdbSnapshotStartTime())) return false; + if (!getRdbSnapshotStartTime() + .equals(other.getRdbSnapshotStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -837,127 +706,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.PersistenceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration of the persistence functionality.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.PersistenceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.PersistenceConfig) com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.PersistenceConfig.class, - com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); + com.google.cloud.redis.v1beta1.PersistenceConfig.class, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.PersistenceConfig.newBuilder() @@ -965,15 +825,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(); @@ -997,9 +858,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; } @java.lang.Override @@ -1018,8 +879,7 @@ public com.google.cloud.redis.v1beta1.PersistenceConfig build() { @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig buildPartial() { - com.google.cloud.redis.v1beta1.PersistenceConfig result = - new com.google.cloud.redis.v1beta1.PersistenceConfig(this); + com.google.cloud.redis.v1beta1.PersistenceConfig result = new com.google.cloud.redis.v1beta1.PersistenceConfig(this); result.persistenceMode_ = persistenceMode_; result.rdbSnapshotPeriod_ = rdbSnapshotPeriod_; if (rdbNextSnapshotTimeBuilder_ == null) { @@ -1040,39 +900,38 @@ public com.google.cloud.redis.v1beta1.PersistenceConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.PersistenceConfig) { - return mergeFrom((com.google.cloud.redis.v1beta1.PersistenceConfig) other); + return mergeFrom((com.google.cloud.redis.v1beta1.PersistenceConfig)other); } else { super.mergeFrom(other); return this; @@ -1080,8 +939,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.PersistenceConfig other) { - if (other == com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance()) return this; if (other.persistenceMode_ != 0) { setPersistenceModeValue(other.getPersistenceModeValue()); } @@ -1125,109 +983,78 @@ public Builder mergeFrom( private int persistenceMode_ = 0; /** - * - * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for persistenceMode. */ - @java.lang.Override - public int getPersistenceModeValue() { + @java.lang.Override public int getPersistenceModeValue() { return persistenceMode_; } /** - * - * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for persistenceMode to set. * @return This builder for chaining. */ public Builder setPersistenceModeValue(int value) { - + persistenceMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The persistenceMode. */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = - com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf( - persistenceMode_); - return result == null - ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf(persistenceMode_); + return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The persistenceMode to set. * @return This builder for chaining. */ - public Builder setPersistenceMode( - com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode value) { + public Builder setPersistenceMode(com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode value) { if (value == null) { throw new NullPointerException(); } - + persistenceMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPersistenceMode() { - + persistenceMode_ = 0; onChanged(); return this; @@ -1235,8 +1062,6 @@ public Builder clearPersistenceMode() { private int rdbSnapshotPeriod_ = 0; /** - * - * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1246,19 +1071,13 @@ public Builder clearPersistenceMode() {
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for rdbSnapshotPeriod. */ - @java.lang.Override - public int getRdbSnapshotPeriodValue() { + @java.lang.Override public int getRdbSnapshotPeriodValue() { return rdbSnapshotPeriod_; } /** - * - * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1268,22 +1087,17 @@ public int getRdbSnapshotPeriodValue() {
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for rdbSnapshotPeriod to set. * @return This builder for chaining. */ public Builder setRdbSnapshotPeriodValue(int value) { - + rdbSnapshotPeriod_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1293,25 +1107,16 @@ public Builder setRdbSnapshotPeriodValue(int value) {
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The rdbSnapshotPeriod. */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = - com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf( - rdbSnapshotPeriod_); - return result == null - ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf(rdbSnapshotPeriod_); + return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1321,26 +1126,20 @@ public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSna
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The rdbSnapshotPeriod to set. * @return This builder for chaining. */ - public Builder setRdbSnapshotPeriod( - com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod value) { + public Builder setRdbSnapshotPeriod(com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod value) { if (value == null) { throw new NullPointerException(); } - + rdbSnapshotPeriod_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1350,14 +1149,11 @@ public Builder setRdbSnapshotPeriod(
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRdbSnapshotPeriod() { - + rdbSnapshotPeriod_ = 0; onChanged(); return this; @@ -1365,58 +1161,39 @@ public Builder clearRdbSnapshotPeriod() { private com.google.protobuf.Timestamp rdbNextSnapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - rdbNextSnapshotTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> rdbNextSnapshotTimeBuilder_; /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the rdbNextSnapshotTime field is set. */ public boolean hasRdbNextSnapshotTime() { return rdbNextSnapshotTimeBuilder_ != null || rdbNextSnapshotTime_ != null; } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The rdbNextSnapshotTime. */ public com.google.protobuf.Timestamp getRdbNextSnapshotTime() { if (rdbNextSnapshotTimeBuilder_ == null) { - return rdbNextSnapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : rdbNextSnapshotTime_; + return rdbNextSnapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbNextSnapshotTime_; } else { return rdbNextSnapshotTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { if (rdbNextSnapshotTimeBuilder_ == null) { @@ -1432,17 +1209,14 @@ public Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRdbNextSnapshotTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (rdbNextSnapshotTimeBuilder_ == null) { rdbNextSnapshotTime_ = builderForValue.build(); onChanged(); @@ -1453,23 +1227,17 @@ public Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp.Builder buil return this; } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { if (rdbNextSnapshotTimeBuilder_ == null) { if (rdbNextSnapshotTime_ != null) { rdbNextSnapshotTime_ = - com.google.protobuf.Timestamp.newBuilder(rdbNextSnapshotTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(rdbNextSnapshotTime_).mergeFrom(value).buildPartial(); } else { rdbNextSnapshotTime_ = value; } @@ -1481,15 +1249,11 @@ public Builder mergeRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRdbNextSnapshotTime() { if (rdbNextSnapshotTimeBuilder_ == null) { @@ -1503,64 +1267,48 @@ public Builder clearRdbNextSnapshotTime() { return this; } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getRdbNextSnapshotTimeBuilder() { - + onChanged(); return getRdbNextSnapshotTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() { if (rdbNextSnapshotTimeBuilder_ != null) { return rdbNextSnapshotTimeBuilder_.getMessageOrBuilder(); } else { - return rdbNextSnapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : rdbNextSnapshotTime_; + return rdbNextSnapshotTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : rdbNextSnapshotTime_; } } /** - * - * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getRdbNextSnapshotTimeFieldBuilder() { if (rdbNextSnapshotTimeBuilder_ == null) { - rdbNextSnapshotTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRdbNextSnapshotTime(), getParentForChildren(), isClean()); + rdbNextSnapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRdbNextSnapshotTime(), + getParentForChildren(), + isClean()); rdbNextSnapshotTime_ = null; } return rdbNextSnapshotTimeBuilder_; @@ -1568,64 +1316,45 @@ public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() private com.google.protobuf.Timestamp rdbSnapshotStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - rdbSnapshotStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> rdbSnapshotStartTimeBuilder_; /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the rdbSnapshotStartTime field is set. */ public boolean hasRdbSnapshotStartTime() { return rdbSnapshotStartTimeBuilder_ != null || rdbSnapshotStartTime_ != null; } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The rdbSnapshotStartTime. */ public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { if (rdbSnapshotStartTimeBuilder_ == null) { - return rdbSnapshotStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : rdbSnapshotStartTime_; + return rdbSnapshotStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbSnapshotStartTime_; } else { return rdbSnapshotStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { if (rdbSnapshotStartTimeBuilder_ == null) { @@ -1641,19 +1370,16 @@ public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRdbSnapshotStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (rdbSnapshotStartTimeBuilder_ == null) { rdbSnapshotStartTime_ = builderForValue.build(); onChanged(); @@ -1664,25 +1390,19 @@ public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp.Builder bui return this; } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { if (rdbSnapshotStartTimeBuilder_ == null) { if (rdbSnapshotStartTime_ != null) { rdbSnapshotStartTime_ = - com.google.protobuf.Timestamp.newBuilder(rdbSnapshotStartTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(rdbSnapshotStartTime_).mergeFrom(value).buildPartial(); } else { rdbSnapshotStartTime_ = value; } @@ -1694,17 +1414,13 @@ public Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRdbSnapshotStartTime() { if (rdbSnapshotStartTimeBuilder_ == null) { @@ -1718,77 +1434,61 @@ public Builder clearRdbSnapshotStartTime() { return this; } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getRdbSnapshotStartTimeBuilder() { - + onChanged(); return getRdbSnapshotStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { if (rdbSnapshotStartTimeBuilder_ != null) { return rdbSnapshotStartTimeBuilder_.getMessageOrBuilder(); } else { - return rdbSnapshotStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : rdbSnapshotStartTime_; + return rdbSnapshotStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : rdbSnapshotStartTime_; } } /** - * - * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getRdbSnapshotStartTimeFieldBuilder() { if (rdbSnapshotStartTimeBuilder_ == null) { - rdbSnapshotStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRdbSnapshotStartTime(), getParentForChildren(), isClean()); + rdbSnapshotStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRdbSnapshotStartTime(), + getParentForChildren(), + isClean()); rdbSnapshotStartTime_ = null; } return rdbSnapshotStartTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1798,12 +1498,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.PersistenceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.PersistenceConfig) private static final com.google.cloud.redis.v1beta1.PersistenceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.PersistenceConfig(); } @@ -1812,16 +1512,16 @@ public static com.google.cloud.redis.v1beta1.PersistenceConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistenceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PersistenceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistenceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersistenceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1836,4 +1536,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.PersistenceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java index 02ea1438..90995759 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java @@ -1,62 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface PersistenceConfigOrBuilder - extends +public interface PersistenceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.PersistenceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for persistenceMode. */ int getPersistenceModeValue(); /** - * - * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The persistenceMode. */ com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode(); /** - * - * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -66,16 +38,11 @@ public interface PersistenceConfigOrBuilder
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for rdbSnapshotPeriod. */ int getRdbSnapshotPeriodValue(); /** - * - * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -85,99 +52,68 @@ public interface PersistenceConfigOrBuilder
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The rdbSnapshotPeriod. */ com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod(); /** - * - * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the rdbNextSnapshotTime field is set. */ boolean hasRdbNextSnapshotTime(); /** - * - * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The rdbNextSnapshotTime. */ com.google.protobuf.Timestamp getRdbNextSnapshotTime(); /** - * - * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder(); /** - * - * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the rdbSnapshotStartTime field is set. */ boolean hasRdbSnapshotStartTime(); /** - * - * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The rdbSnapshotStartTime. */ com.google.protobuf.Timestamp getRdbSnapshotStartTime(); /** - * - * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java similarity index 67% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java index 5611cedc..2df61e62 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [RescheduleMaintenance][google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.RescheduleMaintenanceRequest} */ -public final class RescheduleMaintenanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RescheduleMaintenanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) RescheduleMaintenanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RescheduleMaintenanceRequest.newBuilder() to construct. private RescheduleMaintenanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RescheduleMaintenanceRequest() { name_ = ""; rescheduleType_ = 0; @@ -44,15 +26,16 @@ private RescheduleMaintenanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RescheduleMaintenanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RescheduleMaintenanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private RescheduleMaintenanceRequest( 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: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - rescheduleType_ = rawValue; - break; + rescheduleType_ = rawValue; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = 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) { @@ -114,41 +93,36 @@ private RescheduleMaintenanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); } /** - * - * *
    * Reschedule options.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType} */ - public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { + public enum RescheduleType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -157,8 +131,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ RESCHEDULE_TYPE_UNSPECIFIED(0), /** - * - * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -167,8 +139,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ IMMEDIATE(1), /** - * - * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -178,8 +148,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum {
      */
     NEXT_AVAILABLE_WINDOW(2),
     /**
-     *
-     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -191,8 +159,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not set.
      * 
@@ -201,8 +167,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -211,8 +175,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMMEDIATE_VALUE = 1; /** - * - * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -222,8 +184,6 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NEXT_AVAILABLE_WINDOW_VALUE = 2;
     /**
-     *
-     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -232,6 +192,7 @@ public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPECIFIC_TIME_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -256,53 +217,50 @@ public static RescheduleType valueOf(int value) { */ public static RescheduleType forNumber(int value) { switch (value) { - case 0: - return RESCHEDULE_TYPE_UNSPECIFIED; - case 1: - return IMMEDIATE; - case 2: - return NEXT_AVAILABLE_WINDOW; - case 3: - return SPECIFIC_TIME; - default: - return null; + case 0: return RESCHEDULE_TYPE_UNSPECIFIED; + case 1: return IMMEDIATE; + case 2: return NEXT_AVAILABLE_WINDOW; + case 3: return SPECIFIC_TIME; + 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< + RescheduleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RescheduleType findValueByNumber(int number) { + return RescheduleType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RescheduleType findValueByNumber(int number) { - return RescheduleType.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.redis.v1beta1.RescheduleMaintenanceRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDescriptor().getEnumTypes().get(0); } private static final RescheduleType[] VALUES = values(); - public static RescheduleType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RescheduleType 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; @@ -322,18 +280,13 @@ private RescheduleType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -342,33 +295,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -379,61 +330,40 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int RESCHEDULE_TYPE_FIELD_NUMBER = 2; private int rescheduleType_; /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override - public int getRescheduleTypeValue() { + @java.lang.Override public int getRescheduleTypeValue() { return rescheduleType_; } /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The rescheduleType. */ - @java.lang.Override - public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType - getRescheduleType() { + @java.lang.Override public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf( - rescheduleType_); - return result == null - ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); + return result == null ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; } public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -441,36 +371,27 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { @@ -478,7 +399,6 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -490,14 +410,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (rescheduleType_ - != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType - .RESCHEDULE_TYPE_UNSPECIFIED - .getNumber()) { + if (rescheduleType_ != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, rescheduleType_); } if (scheduleTime_ != null) { @@ -515,14 +433,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (rescheduleType_ - != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType - .RESCHEDULE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rescheduleType_); + if (rescheduleType_ != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, rescheduleType_); } if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getScheduleTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -532,19 +449,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.redis.v1beta1.RescheduleMaintenanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest other = - (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) obj; + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest other = (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (rescheduleType_ != other.rescheduleType_) return false; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -571,127 +489,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [RescheduleMaintenance][google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.RescheduleMaintenanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.newBuilder() @@ -699,15 +607,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(); @@ -725,9 +634,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override @@ -746,8 +655,7 @@ public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest result = - new com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest(this); + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest result = new com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest(this); result.name_ = name_; result.rescheduleType_ = rescheduleType_; if (scheduleTimeBuilder_ == null) { @@ -763,39 +671,38 @@ public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest)other); } else { super.mergeFrom(other); return this; @@ -803,8 +710,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -834,8 +740,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -847,24 +752,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -873,25 +774,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -899,73 +797,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -973,105 +858,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int rescheduleType_ = 0; /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override - public int getRescheduleTypeValue() { + @java.lang.Override public int getRescheduleTypeValue() { return rescheduleType_; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for rescheduleType to set. * @return This builder for chaining. */ public Builder setRescheduleTypeValue(int value) { - + rescheduleType_ = value; onChanged(); return this; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The rescheduleType. */ @java.lang.Override - public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType - getRescheduleType() { + public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf( - rescheduleType_); - return result == null - ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED - : result; + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); + return result == null ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The rescheduleType to set. * @return This builder for chaining. */ - public Builder setRescheduleType( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType value) { + public Builder setRescheduleType(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType value) { if (value == null) { throw new NullPointerException(); } - + rescheduleType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearRescheduleType() { - + rescheduleType_ = 0; onChanged(); return this; @@ -1079,61 +932,45 @@ public Builder clearRescheduleType() { private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { @@ -1149,18 +986,16 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleTimeBuilder_ == null) { scheduleTime_ = builderForValue.build(); onChanged(); @@ -1171,24 +1006,19 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { if (scheduleTime_ != null) { scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial(); } else { scheduleTime_ = value; } @@ -1200,16 +1030,13 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearScheduleTime() { if (scheduleTimeBuilder_ == null) { @@ -1223,74 +1050,61 @@ public Builder clearScheduleTime() { return this; } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - + onChanged(); return getScheduleTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { if (scheduleTimeBuilder_ != null) { return scheduleTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } } /** - * - * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getScheduleTimeFieldBuilder() { if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); + scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), + getParentForChildren(), + isClean()); scheduleTime_ = null; } return scheduleTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1300,12 +1114,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) private static final com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest(); } @@ -1314,16 +1128,16 @@ public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RescheduleMaintenanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RescheduleMaintenanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RescheduleMaintenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RescheduleMaintenanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,4 +1152,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java index a8333815..1200491c 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java @@ -1,131 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface RescheduleMaintenanceRequestOrBuilder - extends +public interface RescheduleMaintenanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for rescheduleType. */ int getRescheduleTypeValue(); /** - * - * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The rescheduleType. */ com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType(); /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java similarity index 69% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java index 89adf4fa..dd765994 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * TlsCertificate Resource
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.TlsCertificate} */ -public final class TlsCertificate extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TlsCertificate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.TlsCertificate) TlsCertificateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TlsCertificate.newBuilder() to construct. private TlsCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TlsCertificate() { serialNumber_ = ""; cert_ = ""; @@ -45,15 +27,16 @@ private TlsCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TlsCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TlsCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,64 +55,57 @@ private TlsCertificate( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - serialNumber_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + serialNumber_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - cert_ = s; - break; - } - case 26: - { - 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; + cert_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); - } - expireTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - sha1Fingerprint_ = s; - break; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + sha1Fingerprint_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,39 +113,34 @@ private TlsCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.TlsCertificate.class, - com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1beta1.TlsCertificate.class, com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); } public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; private volatile java.lang.Object serialNumber_; /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The serialNumber. */ @java.lang.Override @@ -178,29 +149,29 @@ public java.lang.String getSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; } } /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The bytes for serialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getSerialNumberBytes() { + public com.google.protobuf.ByteString + getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -211,14 +182,11 @@ public com.google.protobuf.ByteString getSerialNumberBytes() { public static final int CERT_FIELD_NUMBER = 2; private volatile java.lang.Object cert_; /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The cert. */ @java.lang.Override @@ -227,29 +195,29 @@ public java.lang.String getCert() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; } } /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The bytes for cert. */ @java.lang.Override - public com.google.protobuf.ByteString getCertBytes() { + public com.google.protobuf.ByteString + getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cert_ = b; return b; } else { @@ -260,17 +228,13 @@ public com.google.protobuf.ByteString getCertBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -278,17 +242,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -296,16 +256,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -315,17 +272,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -333,17 +286,13 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -351,16 +300,13 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -370,14 +316,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int SHA1_FINGERPRINT_FIELD_NUMBER = 5; private volatile java.lang.Object sha1Fingerprint_; /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The sha1Fingerprint. */ @java.lang.Override @@ -386,29 +329,29 @@ public java.lang.String getSha1Fingerprint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; } } /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The bytes for sha1Fingerprint. */ @java.lang.Override - public com.google.protobuf.ByteString getSha1FingerprintBytes() { + public com.google.protobuf.ByteString + getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -417,7 +360,6 @@ public com.google.protobuf.ByteString getSha1FingerprintBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -429,7 +371,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serialNumber_); } @@ -461,10 +404,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cert_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha1Fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sha1Fingerprint_); @@ -477,25 +422,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.redis.v1beta1.TlsCertificate)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.TlsCertificate other = - (com.google.cloud.redis.v1beta1.TlsCertificate) obj; + com.google.cloud.redis.v1beta1.TlsCertificate other = (com.google.cloud.redis.v1beta1.TlsCertificate) obj; - if (!getSerialNumber().equals(other.getSerialNumber())) return false; - if (!getCert().equals(other.getCert())) return false; + if (!getSerialNumber() + .equals(other.getSerialNumber())) return false; + if (!getCert() + .equals(other.getCert())) 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 (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } - if (!getSha1Fingerprint().equals(other.getSha1Fingerprint())) return false; + if (!getSha1Fingerprint() + .equals(other.getSha1Fingerprint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -526,127 +475,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.TlsCertificate 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.redis.v1beta1.TlsCertificate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.TlsCertificate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.TlsCertificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.TlsCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TlsCertificate Resource
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.TlsCertificate} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.TlsCertificate) com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.TlsCertificate.class, - com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1beta1.TlsCertificate.class, com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.TlsCertificate.newBuilder() @@ -654,15 +594,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(); @@ -688,9 +629,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; } @java.lang.Override @@ -709,8 +650,7 @@ public com.google.cloud.redis.v1beta1.TlsCertificate build() { @java.lang.Override public com.google.cloud.redis.v1beta1.TlsCertificate buildPartial() { - com.google.cloud.redis.v1beta1.TlsCertificate result = - new com.google.cloud.redis.v1beta1.TlsCertificate(this); + com.google.cloud.redis.v1beta1.TlsCertificate result = new com.google.cloud.redis.v1beta1.TlsCertificate(this); result.serialNumber_ = serialNumber_; result.cert_ = cert_; if (createTimeBuilder_ == null) { @@ -732,39 +672,38 @@ public com.google.cloud.redis.v1beta1.TlsCertificate buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.TlsCertificate) { - return mergeFrom((com.google.cloud.redis.v1beta1.TlsCertificate) other); + return mergeFrom((com.google.cloud.redis.v1beta1.TlsCertificate)other); } else { super.mergeFrom(other); return this; @@ -822,20 +761,18 @@ public Builder mergeFrom( private java.lang.Object serialNumber_ = ""; /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @return The serialNumber. */ public java.lang.String getSerialNumber() { java.lang.Object ref = serialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; @@ -844,21 +781,20 @@ public java.lang.String getSerialNumber() { } } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @return The bytes for serialNumber. */ - public com.google.protobuf.ByteString getSerialNumberBytes() { + public com.google.protobuf.ByteString + getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -866,61 +802,54 @@ public com.google.protobuf.ByteString getSerialNumberBytes() { } } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @param value The serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumber(java.lang.String value) { + public Builder setSerialNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serialNumber_ = value; onChanged(); return this; } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @return This builder for chaining. */ public Builder clearSerialNumber() { - + serialNumber_ = getDefaultInstance().getSerialNumber(); onChanged(); return this; } /** - * - * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; - * * @param value The bytes for serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { + public Builder setSerialNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serialNumber_ = value; onChanged(); return this; @@ -928,20 +857,18 @@ public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { private java.lang.Object cert_ = ""; /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @return The cert. */ public java.lang.String getCert() { java.lang.Object ref = cert_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; @@ -950,21 +877,20 @@ public java.lang.String getCert() { } } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @return The bytes for cert. */ - public com.google.protobuf.ByteString getCertBytes() { + public com.google.protobuf.ByteString + getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cert_ = b; return b; } else { @@ -972,61 +898,54 @@ public com.google.protobuf.ByteString getCertBytes() { } } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @param value The cert to set. * @return This builder for chaining. */ - public Builder setCert(java.lang.String value) { + public Builder setCert( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cert_ = value; onChanged(); return this; } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @return This builder for chaining. */ public Builder clearCert() { - + cert_ = getDefaultInstance().getCert(); onChanged(); return this; } /** - * - * *
      * PEM representation.
      * 
* * string cert = 2; - * * @param value The bytes for cert to set. * @return This builder for chaining. */ - public Builder setCertBytes(com.google.protobuf.ByteString value) { + public Builder setCertBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cert_ = value; onChanged(); return this; @@ -1034,64 +953,45 @@ public Builder setCertBytes(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 time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1107,19 +1007,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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(); @@ -1130,23 +1027,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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; } @@ -1158,17 +1051,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1182,70 +1071,54 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -1253,64 +1126,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1326,19 +1180,16 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -1349,23 +1200,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -1377,17 +1224,13 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -1401,70 +1244,54 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -1472,20 +1299,18 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object sha1Fingerprint_ = ""; /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @return The sha1Fingerprint. */ public java.lang.String getSha1Fingerprint() { java.lang.Object ref = sha1Fingerprint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; @@ -1494,21 +1319,20 @@ public java.lang.String getSha1Fingerprint() { } } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @return The bytes for sha1Fingerprint. */ - public com.google.protobuf.ByteString getSha1FingerprintBytes() { + public com.google.protobuf.ByteString + getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -1516,68 +1340,61 @@ public com.google.protobuf.ByteString getSha1FingerprintBytes() { } } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @param value The sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1Fingerprint(java.lang.String value) { + public Builder setSha1Fingerprint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha1Fingerprint_ = value; onChanged(); return this; } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @return This builder for chaining. */ public Builder clearSha1Fingerprint() { - + sha1Fingerprint_ = getDefaultInstance().getSha1Fingerprint(); onChanged(); return this; } /** - * - * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; - * * @param value The bytes for sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1FingerprintBytes(com.google.protobuf.ByteString value) { + public Builder setSha1FingerprintBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha1Fingerprint_ = 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); } @@ -1587,12 +1404,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.TlsCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.TlsCertificate) private static final com.google.cloud.redis.v1beta1.TlsCertificate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.TlsCertificate(); } @@ -1601,16 +1418,16 @@ public static com.google.cloud.redis.v1beta1.TlsCertificate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TlsCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TlsCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TlsCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TlsCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1625,4 +1442,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.TlsCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java similarity index 72% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java index 9a5054f2..227722aa 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java @@ -1,188 +1,135 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface TlsCertificateOrBuilder - extends +public interface TlsCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.TlsCertificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The serialNumber. */ java.lang.String getSerialNumber(); /** - * - * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; - * * @return The bytes for serialNumber. */ - com.google.protobuf.ByteString getSerialNumberBytes(); + com.google.protobuf.ByteString + getSerialNumberBytes(); /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The cert. */ java.lang.String getCert(); /** - * - * *
    * PEM representation.
    * 
* * string cert = 2; - * * @return The bytes for cert. */ - com.google.protobuf.ByteString getCertBytes(); + com.google.protobuf.ByteString + getCertBytes(); /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The sha1Fingerprint. */ java.lang.String getSha1Fingerprint(); /** - * - * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; - * * @return The bytes for sha1Fingerprint. */ - com.google.protobuf.ByteString getSha1FingerprintBytes(); + com.google.protobuf.ByteString + getSha1FingerprintBytes(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java similarity index 68% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java index db85e44f..d49e123b 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateInstanceRequest( 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(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.redis.v1beta1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.redis.v1beta1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instance_ = input.readMessage(com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, - com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -151,9 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -161,8 +134,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -174,9 +145,7 @@ public boolean hasUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -184,8 +153,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -197,8 +164,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -208,17 +174,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.redis.v1beta1.Instance instance_; /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -226,36 +187,25 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -263,7 +213,6 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -292,10 +242,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 (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,21 +257,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.redis.v1beta1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.UpdateInstanceRequest other = - (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) obj; + com.google.cloud.redis.v1beta1.UpdateInstanceRequest other = (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -346,126 +299,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.UpdateInstanceRequest) com.google.cloud.redis.v1beta1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, - com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.UpdateInstanceRequest.newBuilder() @@ -473,15 +417,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(); @@ -501,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -522,8 +467,7 @@ public com.google.cloud.redis.v1beta1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.UpdateInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.UpdateInstanceRequest result = - new com.google.cloud.redis.v1beta1.UpdateInstanceRequest(this); + com.google.cloud.redis.v1beta1.UpdateInstanceRequest result = new com.google.cloud.redis.v1beta1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -542,39 +486,38 @@ public com.google.cloud.redis.v1beta1.UpdateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -582,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.UpdateInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -609,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,13 +563,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_; /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -640,17 +576,13 @@ public Builder mergeFrom(
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -662,23 +594,17 @@ public boolean hasUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @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(); } } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -690,8 +616,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -707,8 +632,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -720,10 +643,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ - 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(); @@ -734,8 +657,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -747,14 +668,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -766,8 +686,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -779,8 +697,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -794,8 +711,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -807,17 +722,14 @@ public Builder clearUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -829,21 +741,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; } } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -855,21 +763,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; @@ -877,61 +781,42 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.redis.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, - com.google.cloud.redis.v1beta1.Instance.Builder, - com.google.cloud.redis.v1beta1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.redis.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -947,18 +832,15 @@ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -969,24 +851,18 @@ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder build return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -998,16 +874,12 @@ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -1021,74 +893,58 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, - com.google.cloud.redis.v1beta1.Instance.Builder, - com.google.cloud.redis.v1beta1.InstanceOrBuilder> + com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, - com.google.cloud.redis.v1beta1.Instance.Builder, - com.google.cloud.redis.v1beta1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - 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 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.UpdateInstanceRequest) private static final com.google.cloud.redis.v1beta1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.UpdateInstanceRequest(); } @@ -1112,16 +968,16 @@ public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java index b31c028a..44e3132a 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -37,15 +19,11 @@ public interface UpdateInstanceRequestOrBuilder
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -57,15 +35,11 @@ public interface UpdateInstanceRequestOrBuilder
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -77,52 +51,37 @@ public interface UpdateInstanceRequestOrBuilder
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.redis.v1beta1.Instance getInstance(); /** - * - * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java similarity index 69% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java index cec7c228..714297a3 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpgradeInstanceRequest} */ -public final class UpgradeInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpgradeInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.UpgradeInstanceRequest) UpgradeInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpgradeInstanceRequest.newBuilder() to construct. private UpgradeInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpgradeInstanceRequest() { name_ = ""; redisVersion_ = ""; @@ -44,15 +26,16 @@ private UpgradeInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpgradeInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpgradeInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private UpgradeInstanceRequest( 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(); - redisVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + redisVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private UpgradeInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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 @@ -144,33 +118,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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -181,14 +153,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REDIS_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object redisVersion_; /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The redisVersion. */ @java.lang.Override @@ -197,29 +166,29 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -270,16 +239,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.redis.v1beta1.UpgradeInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest other = - (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) obj; + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest other = (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRedisVersion().equals(other.getRedisVersion())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRedisVersion() + .equals(other.getRedisVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpgradeInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.UpgradeInstanceRequest) com.google.cloud.redis.v1beta1.UpgradeInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.newBuilder() @@ -429,15 +389,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(); @@ -449,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto - .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override @@ -470,8 +431,7 @@ public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest result = - new com.google.cloud.redis.v1beta1.UpgradeInstanceRequest(this); + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest result = new com.google.cloud.redis.v1beta1.UpgradeInstanceRequest(this); result.name_ = name_; result.redisVersion_ = redisVersion_; onBuilt(); @@ -482,39 +442,38 @@ public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) other); + return mergeFrom((com.google.cloud.redis.v1beta1.UpgradeInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -522,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -551,8 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,24 +521,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.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; @@ -590,25 +543,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -616,73 +566,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * - * 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; @@ -690,20 +627,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object redisVersion_ = ""; /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -712,21 +647,20 @@ public java.lang.String getRedisVersion() { } } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString getRedisVersionBytes() { + public com.google.protobuf.ByteString + getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -734,68 +668,61 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { } } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion(java.lang.String value) { + public Builder setRedisVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** - * - * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = 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); } @@ -805,12 +732,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.UpgradeInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.UpgradeInstanceRequest) private static final com.google.cloud.redis.v1beta1.UpgradeInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.UpgradeInstanceRequest(); } @@ -819,16 +746,16 @@ public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,4 +770,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java index 3e0c6ef3..53ec67b6 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java @@ -1,83 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface UpgradeInstanceRequestOrBuilder - extends +public interface UpgradeInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.UpgradeInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** - * - * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString getRedisVersionBytes(); + com.google.protobuf.ByteString + getRedisVersionBytes(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java similarity index 73% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java index a39cd1a5..7166b000 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Time window in which disruptive maintenance updates occur. Non-disruptive
  * updates can occur inside or outside this window.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.WeeklyMaintenanceWindow}
  */
-public final class WeeklyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WeeklyMaintenanceWindow extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow)
     WeeklyMaintenanceWindowOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WeeklyMaintenanceWindow.newBuilder() to construct.
   private WeeklyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WeeklyMaintenanceWindow() {
     day_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WeeklyMaintenanceWindow();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private WeeklyMaintenanceWindow(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,49 +54,45 @@ private WeeklyMaintenanceWindow(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              day_ = rawValue;
-              break;
+            day_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.type.TimeOfDay.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.type.TimeOfDay.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (duration_ != null) {
-                subBuilder = duration_.toBuilder();
-              }
-              duration_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(duration_);
-                duration_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (duration_ != null) {
+              subBuilder = duration_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(duration_);
+              duration_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -121,58 +100,48 @@ private WeeklyMaintenanceWindow(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class,
-            com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
+            com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
   }
 
   public static final int DAY_FIELD_NUMBER = 1;
   private int day_;
   /**
-   *
-   *
    * 
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for day. */ - @java.lang.Override - public int getDayValue() { + @java.lang.Override public int getDayValue() { return day_; } /** - * - * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The day. */ - @java.lang.Override - public com.google.type.DayOfWeek getDay() { + @java.lang.Override public com.google.type.DayOfWeek getDay() { @SuppressWarnings("deprecation") com.google.type.DayOfWeek result = com.google.type.DayOfWeek.valueOf(day_); return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; @@ -181,14 +150,11 @@ public com.google.type.DayOfWeek getDay() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.type.TimeOfDay startTime_; /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -196,14 +162,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startTime. */ @java.lang.Override @@ -211,8 +174,6 @@ public com.google.type.TimeOfDay getStartTime() { return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
@@ -227,15 +188,11 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration duration_; /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ @java.lang.Override @@ -243,15 +200,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ @java.lang.Override @@ -259,14 +212,11 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -274,7 +224,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +235,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 (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { output.writeEnum(1, day_); } @@ -306,13 +256,16 @@ public int getSerializedSize() { size = 0; if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, day_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, day_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -322,22 +275,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.redis.v1beta1.WeeklyMaintenanceWindow)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow other = - (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) obj; + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow other = (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) obj; if (day_ != other.day_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -366,104 +320,96 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow prototype) { + public static Builder newBuilder(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Time window in which disruptive maintenance updates occur. Non-disruptive
    * updates can occur inside or outside this window.
@@ -471,23 +417,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.WeeklyMaintenanceWindow}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow)
       com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class,
-              com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
+              com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.newBuilder()
@@ -495,15 +439,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();
@@ -525,9 +470,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
@@ -546,8 +491,7 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow buildPartial() {
-      com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow result =
-          new com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow(this);
+      com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow result = new com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow(this);
       result.day_ = day_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -567,39 +511,38 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,8 +550,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow other) {
-      if (other == com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()) return this;
       if (other.day_ != 0) {
         setDayValue(other.getDayValue());
       }
@@ -637,8 +579,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -650,47 +591,37 @@ public Builder mergeFrom(
 
     private int day_ = 0;
     /**
-     *
-     *
      * 
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for day. */ - @java.lang.Override - public int getDayValue() { + @java.lang.Override public int getDayValue() { return day_; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The enum numeric value on the wire for day to set. * @return This builder for chaining. */ public Builder setDayValue(int value) { - + day_ = value; onChanged(); return this; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The day. */ @java.lang.Override @@ -700,14 +631,11 @@ public com.google.type.DayOfWeek getDay() { return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The day to set. * @return This builder for chaining. */ @@ -715,24 +643,21 @@ public Builder setDay(com.google.type.DayOfWeek value) { if (value == null) { throw new NullPointerException(); } - + day_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDay() { - + day_ = 0; onChanged(); return this; @@ -740,33 +665,24 @@ public Builder clearDay() { private com.google.type.TimeOfDay startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder> - startTimeBuilder_; + com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> startTimeBuilder_; /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startTime. */ public com.google.type.TimeOfDay getStartTime() { @@ -777,8 +693,6 @@ public com.google.type.TimeOfDay getStartTime() { } } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -799,15 +713,14 @@ public Builder setStartTime(com.google.type.TimeOfDay value) { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + public Builder setStartTime( + com.google.type.TimeOfDay.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -818,8 +731,6 @@ public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -830,7 +741,7 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -842,8 +753,6 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -862,8 +771,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -871,13 +778,11 @@ public Builder clearStartTime() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -888,12 +793,11 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } } /** - * - * *
      * Required. Start time of the window in UTC time.
      * 
@@ -901,17 +805,14 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder> + com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -919,35 +820,24 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -958,14 +848,11 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -981,16 +868,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -1001,20 +886,17 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -1026,14 +908,11 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDuration() { if (durationBuilder_ == null) { @@ -1047,66 +926,55 @@ public Builder clearDuration() { return this; } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1116,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) private static final com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow(); } @@ -1130,16 +998,16 @@ public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WeeklyMaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeeklyMaintenanceWindow(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WeeklyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WeeklyMaintenanceWindow(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1154,4 +1022,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java similarity index 72% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java index 588c9b09..36fc5f5c 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java @@ -1,80 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface WeeklyMaintenanceWindowOrBuilder - extends +public interface WeeklyMaintenanceWindowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for day. */ int getDayValue(); /** - * - * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The day. */ com.google.type.DayOfWeek getDay(); /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startTime. */ com.google.type.TimeOfDay getStartTime(); /** - * - * *
    * Required. Start time of the window in UTC time.
    * 
@@ -84,40 +54,29 @@ public interface WeeklyMaintenanceWindowOrBuilder com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java similarity index 68% rename from proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java index 5aa6feb6..59b7b0ac 100644 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** - * - * *
  * Defines specific information for a particular zone. Currently empty and
  * reserved for future use only.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.ZoneMetadata}
  */
-public final class ZoneMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ZoneMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ZoneMetadata)
     ZoneMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ZoneMetadata.newBuilder() to construct.
   private ZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ZoneMetadata() {}
+  private ZoneMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ZoneMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ZoneMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,13 +53,13 @@ private ZoneMetadata(
           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) {
@@ -83,30 +67,27 @@ private ZoneMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-        .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.ZoneMetadata.class,
-            com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
+            com.google.cloud.redis.v1beta1.ZoneMetadata.class, com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -118,7 +99,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     unknownFields.writeTo(output);
   }
 
@@ -136,13 +118,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.redis.v1beta1.ZoneMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.redis.v1beta1.ZoneMetadata other =
-        (com.google.cloud.redis.v1beta1.ZoneMetadata) obj;
+    com.google.cloud.redis.v1beta1.ZoneMetadata other = (com.google.cloud.redis.v1beta1.ZoneMetadata) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -160,104 +141,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata 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.redis.v1beta1.ZoneMetadata parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.redis.v1beta1.ZoneMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Defines specific information for a particular zone. Currently empty and
    * reserved for future use only.
@@ -265,23 +239,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.ZoneMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ZoneMetadata)
       com.google.cloud.redis.v1beta1.ZoneMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.ZoneMetadata.class,
-              com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
+              com.google.cloud.redis.v1beta1.ZoneMetadata.class, com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.ZoneMetadata.newBuilder()
@@ -289,15 +261,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();
@@ -305,9 +278,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
-          .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -326,8 +299,7 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.ZoneMetadata buildPartial() {
-      com.google.cloud.redis.v1beta1.ZoneMetadata result =
-          new com.google.cloud.redis.v1beta1.ZoneMetadata(this);
+      com.google.cloud.redis.v1beta1.ZoneMetadata result = new com.google.cloud.redis.v1beta1.ZoneMetadata(this);
       onBuilt();
       return result;
     }
@@ -336,39 +308,38 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.ZoneMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.ZoneMetadata) other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.ZoneMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -405,9 +376,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);
     }
 
@@ -417,12 +388,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ZoneMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ZoneMetadata)
   private static final com.google.cloud.redis.v1beta1.ZoneMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ZoneMetadata();
   }
@@ -431,16 +402,16 @@ public static com.google.cloud.redis.v1beta1.ZoneMetadata getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ZoneMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ZoneMetadata(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ZoneMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ZoneMetadata(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -455,4 +426,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.redis.v1beta1.ZoneMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java
new file mode 100644
index 00000000..986cf0c3
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/redis/v1beta1/cloud_redis.proto
+
+package com.google.cloud.redis.v1beta1;
+
+public interface ZoneMetadataOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ZoneMetadata)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
similarity index 100%
rename from proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
similarity index 97%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
index 0aa52407..c8916d35 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
+++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
@@ -20,6 +20,7 @@
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.DeleteInstanceRequest;
 import com.google.cloud.redis.v1beta1.InstanceName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteInstance {
 
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
similarity index 97%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
index fd859e1e..2e63ba9f 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
+++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
@@ -19,6 +19,7 @@
 // [START redis_v1beta1_generated_cloudredisclient_deleteinstance_instancename_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.InstanceName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteInstanceInstancename {
 
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
similarity index 97%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
index ce8e43b2..51230d5a 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
+++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
@@ -19,6 +19,7 @@
 // [START redis_v1beta1_generated_cloudredisclient_deleteinstance_string_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.InstanceName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteInstanceString {
 
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
index 8f6a549c..3a534cd4 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
+++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START
-// redis_v1beta1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
+// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
@@ -41,5 +40,4 @@ public static void syncFailoverInstanceInstancenameFailoverinstancerequestdatapr
     }
   }
 }
-// [END
-// redis_v1beta1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
+// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
index d5c14d25..af21b930 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
+++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START
-// redis_v1beta1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
+// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
@@ -41,5 +40,4 @@ public static void syncFailoverInstanceStringFailoverinstancerequestdataprotecti
     }
   }
 }
-// [END
-// redis_v1beta1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
+// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
index 18b55fd0..8e4e5e99 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
+++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START
-// redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
@@ -46,5 +45,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END
-// redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
index a244632e..686b3760 100644
--- a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
+++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START
-// redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
@@ -45,5 +44,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END
-// redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
+// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
diff --git a/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java
deleted file mode 100644
index 9dd93069..00000000
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java
+++ /dev/null
@@ -1,678 +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/redis/v1/cloud_redis.proto
-
-package com.google.cloud.redis.v1;
-
-public final class CloudRedisServiceV1Proto {
-  private CloudRedisServiceV1Proto() {}
-
-  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_redis_v1_NodeInfo_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_Instance_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_GcsSource_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_InputConfig_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_GcsDestination_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_OutputConfig_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_OperationMetadata_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_redis_v1_TlsCertificate_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_redis_v1_TlsCertificate_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/redis/v1/cloud_redis.prot"
-          + "o\022\025google.cloud.redis.v1\032\034google/api/ann"
-          + "otations.proto\032\027google/api/client.proto\032"
-          + "\037google/api/field_behavior.proto\032\031google"
-          + "/api/resource.proto\032#google/longrunning/"
-          + "operations.proto\032\036google/protobuf/durati"
-          + "on.proto\032 google/protobuf/field_mask.pro"
-          + "to\032\037google/protobuf/timestamp.proto\032\033goo"
-          + "gle/type/dayofweek.proto\032\033google/type/ti"
-          + "meofday.proto\".\n\010NodeInfo\022\017\n\002id\030\001 \001(\tB\003\340"
-          + "A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\236\020\n\010Instance\022\021\n\004na"
-          + "me\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022;\n\006l"
-          + "abels\030\003 \003(\0132+.google.cloud.redis.v1.Inst"
-          + "ance.LabelsEntry\022\030\n\013location_id\030\004 \001(\tB\003\340"
-          + "A\001\022$\n\027alternative_location_id\030\005 \001(\tB\003\340A\001"
-          + "\022\032\n\rredis_version\030\007 \001(\tB\003\340A\001\022\036\n\021reserved"
-          + "_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022secondary_ip_ran"
-          + "ge\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001(\tB\003\340A\003\022\021\n\004port"
-          + "\030\013 \001(\005B\003\340A\003\022 \n\023current_location_id\030\014 \001(\t"
-          + "B\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.google.prot"
-          + "obuf.TimestampB\003\340A\003\0229\n\005state\030\016 \001(\0162%.goo"
-          + "gle.cloud.redis.v1.Instance.StateB\003\340A\003\022\033"
-          + "\n\016status_message\030\017 \001(\tB\003\340A\003\022M\n\rredis_con"
-          + "figs\030\020 \003(\01321.google.cloud.redis.v1.Insta"
-          + "nce.RedisConfigsEntryB\003\340A\001\0227\n\004tier\030\021 \001(\016"
-          + "2$.google.cloud.redis.v1.Instance.TierB\003"
-          + "\340A\002\022\033\n\016memory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022auth"
-          + "orized_network\030\024 \001(\tB\003\340A\001\022%\n\030persistence"
-          + "_iam_identity\030\025 \001(\tB\003\340A\003\022F\n\014connect_mode"
-          + "\030\026 \001(\0162+.google.cloud.redis.v1.Instance."
-          + "ConnectModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003"
-          + "\340A\001\022C\n\017server_ca_certs\030\031 \003(\0132%.google.cl"
-          + "oud.redis.v1.TlsCertificateB\003\340A\003\022[\n\027tran"
-          + "sit_encryption_mode\030\032 \001(\01625.google.cloud"
-          + ".redis.v1.Instance.TransitEncryptionMode"
-          + "B\003\340A\001\022I\n\022maintenance_policy\030\033 \001(\0132(.goog"
-          + "le.cloud.redis.v1.MaintenancePolicyB\003\340A\001"
-          + "\022M\n\024maintenance_schedule\030\034 \001(\0132*.google."
-          + "cloud.redis.v1.MaintenanceScheduleB\003\340A\003\022"
-          + "\032\n\rreplica_count\030\037 \001(\005B\003\340A\001\0223\n\005nodes\030  \003"
-          + "(\0132\037.google.cloud.redis.v1.NodeInfoB\003\340A\003"
-          + "\022\032\n\rread_endpoint\030! \001(\tB\003\340A\003\022\037\n\022read_end"
-          + "point_port\030\" \001(\005B\003\340A\003\022Q\n\022read_replicas_m"
-          + "ode\030# \001(\01620.google.cloud.redis.v1.Instan"
-          + "ce.ReadReplicasModeB\003\340A\001\032-\n\013LabelsEntry\022"
-          + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021Redis"
-          + "ConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
-          + ":\0028\001\"\224\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n"
-          + "\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010"
-          + "DELETING\020\004\022\r\n\tREPAIRING\020\005\022\017\n\013MAINTENANCE"
-          + "\020\006\022\r\n\tIMPORTING\020\010\022\020\n\014FAILING_OVER\020\t\"8\n\004T"
-          + "ier\022\024\n\020TIER_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013"
-          + "STANDARD_HA\020\003\"[\n\013ConnectMode\022\034\n\030CONNECT_"
-          + "MODE_UNSPECIFIED\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032"
-          + "\n\026PRIVATE_SERVICE_ACCESS\020\002\"i\n\025TransitEnc"
-          + "ryptionMode\022\'\n#TRANSIT_ENCRYPTION_MODE_U"
-          + "NSPECIFIED\020\000\022\031\n\025SERVER_AUTHENTICATION\020\001\022"
-          + "\014\n\010DISABLED\020\002\"m\n\020ReadReplicasMode\022\"\n\036REA"
-          + "D_REPLICAS_MODE_UNSPECIFIED\020\000\022\032\n\026READ_RE"
-          + "PLICAS_DISABLED\020\001\022\031\n\025READ_REPLICAS_ENABL"
-          + "ED\020\002:`\352A]\n\035redis.googleapis.com/Instance"
-          + "\022\202\323\344\223\002/\022-/v1/{parent=projects/*/loca"
-          + "tions/*}/instances\332A\006parent\022\227\001\n\013GetInsta"
-          + "nce\022).google.cloud.redis.v1.GetInstanceR"
-          + "equest\032\037.google.cloud.redis.v1.Instance\""
-          + "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/"
-          + "*/instances/*}\332A\004name\022\300\001\n\025GetInstanceAut"
-          + "hString\0223.google.cloud.redis.v1.GetInsta"
-          + "nceAuthStringRequest\032).google.cloud.redi"
-          + "s.v1.InstanceAuthString\"G\202\323\344\223\002:\0228/v1/{na"
-          + "me=projects/*/locations/*/instances/*}/a"
-          + "uthString\332A\004name\022\211\002\n\016CreateInstance\022,.go"
-          + "ogle.cloud.redis.v1.CreateInstanceReques"
-          + "t\032\035.google.longrunning.Operation\"\251\001\202\323\344\223\002"
-          + "9\"-/v1/{parent=projects/*/locations/*}/i"
-          + "nstances:\010instance\332A\033parent,instance_id,"
-          + "instance\312AI\n\036google.cloud.redis.v1.Insta"
-          + "nce\022\'google.cloud.redis.v1.OperationMeta"
-          + "data\022\213\002\n\016UpdateInstance\022,.google.cloud.r"
-          + "edis.v1.UpdateInstanceRequest\032\035.google.l"
-          + "ongrunning.Operation\"\253\001\202\323\344\223\002B26/v1/{inst"
-          + "ance.name=projects/*/locations/*/instanc"
-          + "es/*}:\010instance\332A\024update_mask,instance\312A"
-          + "I\n\036google.cloud.redis.v1.Instance\022\'googl"
-          + "e.cloud.redis.v1.OperationMetadata\022\203\002\n\017U"
-          + "pgradeInstance\022-.google.cloud.redis.v1.U"
-          + "pgradeInstanceRequest\032\035.google.longrunni"
-          + "ng.Operation\"\241\001\202\323\344\223\002:\"5/v1/{name=project"
-          + "s/*/locations/*/instances/*}:upgrade:\001*\332"
-          + "A\022name,redis_version\312AI\n\036google.cloud.re"
-          + "dis.v1.Instance\022\'google.cloud.redis.v1.O"
-          + "perationMetadata\022\377\001\n\016ImportInstance\022,.go"
-          + "ogle.cloud.redis.v1.ImportInstanceReques"
-          + "t\032\035.google.longrunning.Operation\"\237\001\202\323\344\223\002"
-          + "9\"4/v1/{name=projects/*/locations/*/inst"
-          + "ances/*}:import:\001*\332A\021name,input_config\312A"
-          + "I\n\036google.cloud.redis.v1.Instance\022\'googl"
-          + "e.cloud.redis.v1.OperationMetadata\022\200\002\n\016E"
-          + "xportInstance\022,.google.cloud.redis.v1.Ex"
-          + "portInstanceRequest\032\035.google.longrunning"
-          + ".Operation\"\240\001\202\323\344\223\0029\"4/v1/{name=projects/"
-          + "*/locations/*/instances/*}:export:\001*\332A\022n"
-          + "ame,output_config\312AI\n\036google.cloud.redis"
-          + ".v1.Instance\022\'google.cloud.redis.v1.Oper"
-          + "ationMetadata\022\215\002\n\020FailoverInstance\022..goo"
-          + "gle.cloud.redis.v1.FailoverInstanceReque"
-          + "st\032\035.google.longrunning.Operation\"\251\001\202\323\344\223"
-          + "\002;\"6/v1/{name=projects/*/locations/*/ins"
-          + "tances/*}:failover:\001*\332A\031name,data_protec"
-          + "tion_mode\312AI\n\036google.cloud.redis.v1.Inst"
-          + "ance\022\'google.cloud.redis.v1.OperationMet"
-          + "adata\022\336\001\n\016DeleteInstance\022,.google.cloud."
-          + "redis.v1.DeleteInstanceRequest\032\035.google."
-          + "longrunning.Operation\"\177\202\323\344\223\002/*-/v1/{name"
-          + "=projects/*/locations/*/instances/*}\332A\004n"
-          + "ame\312A@\n\025google.protobuf.Empty\022\'google.cl"
-          + "oud.redis.v1.OperationMetadata\022\257\002\n\025Resch"
-          + "eduleMaintenance\0223.google.cloud.redis.v1"
-          + ".RescheduleMaintenanceRequest\032\035.google.l"
-          + "ongrunning.Operation\"\301\001\202\323\344\223\002H\"C/v1/{name"
-          + "=projects/*/locations/*/instances/*}:res"
-          + "cheduleMaintenance:\001*\332A$name, reschedule"
-          + "_type, schedule_time\312AI\n\036google.cloud.re"
-          + "dis.v1.Instance\022\'google.cloud.redis.v1.O"
-          + "perationMetadata\032H\312A\024redis.googleapis.co"
-          + "m\322A.https://www.googleapis.com/auth/clou"
-          + "d-platformBs\n\031com.google.cloud.redis.v1B"
-          + "\030CloudRedisServiceV1ProtoP\001Z:google.gola"
-          + "ng.org/genproto/googleapis/cloud/redis/v"
-          + "1;redisb\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.AnnotationsProto.getDescriptor(),
-              com.google.api.ClientProto.getDescriptor(),
-              com.google.api.FieldBehaviorProto.getDescriptor(),
-              com.google.api.ResourceProto.getDescriptor(),
-              com.google.longrunning.OperationsProto.getDescriptor(),
-              com.google.protobuf.DurationProto.getDescriptor(),
-              com.google.protobuf.FieldMaskProto.getDescriptor(),
-              com.google.protobuf.TimestampProto.getDescriptor(),
-              com.google.type.DayOfWeekProto.getDescriptor(),
-              com.google.type.TimeOfDayProto.getDescriptor(),
-            });
-    internal_static_google_cloud_redis_v1_NodeInfo_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_NodeInfo_descriptor,
-            new java.lang.String[] {
-              "Id", "Zone",
-            });
-    internal_static_google_cloud_redis_v1_Instance_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_Instance_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "DisplayName",
-              "Labels",
-              "LocationId",
-              "AlternativeLocationId",
-              "RedisVersion",
-              "ReservedIpRange",
-              "SecondaryIpRange",
-              "Host",
-              "Port",
-              "CurrentLocationId",
-              "CreateTime",
-              "State",
-              "StatusMessage",
-              "RedisConfigs",
-              "Tier",
-              "MemorySizeGb",
-              "AuthorizedNetwork",
-              "PersistenceIamIdentity",
-              "ConnectMode",
-              "AuthEnabled",
-              "ServerCaCerts",
-              "TransitEncryptionMode",
-              "MaintenancePolicy",
-              "MaintenanceSchedule",
-              "ReplicaCount",
-              "Nodes",
-              "ReadEndpoint",
-              "ReadEndpointPort",
-              "ReadReplicasMode",
-            });
-    internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor =
-        internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(0);
-    internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
-    internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor =
-        internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(1);
-    internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
-    internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor,
-            new java.lang.String[] {
-              "Name", "RescheduleType", "ScheduleTime",
-            });
-    internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor,
-            new java.lang.String[] {
-              "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow",
-            });
-    internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor,
-            new java.lang.String[] {
-              "Day", "StartTime", "Duration",
-            });
-    internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor =
-        getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor,
-            new java.lang.String[] {
-              "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime",
-            });
-    internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor =
-        getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor,
-            new java.lang.String[] {
-              "Parent", "PageSize", "PageToken",
-            });
-    internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor =
-        getDescriptor().getMessageTypes().get(7);
-    internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor,
-            new java.lang.String[] {
-              "Instances", "NextPageToken", "Unreachable",
-            });
-    internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(8);
-    internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor =
-        getDescriptor().getMessageTypes().get(9);
-    internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor =
-        getDescriptor().getMessageTypes().get(10);
-    internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor,
-            new java.lang.String[] {
-              "AuthString",
-            });
-    internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(11);
-    internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "Parent", "InstanceId", "Instance",
-            });
-    internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(12);
-    internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "UpdateMask", "Instance",
-            });
-    internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(13);
-    internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "Name", "RedisVersion",
-            });
-    internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(14);
-    internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_redis_v1_GcsSource_descriptor =
-        getDescriptor().getMessageTypes().get(15);
-    internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_GcsSource_descriptor,
-            new java.lang.String[] {
-              "Uri",
-            });
-    internal_static_google_cloud_redis_v1_InputConfig_descriptor =
-        getDescriptor().getMessageTypes().get(16);
-    internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_InputConfig_descriptor,
-            new java.lang.String[] {
-              "GcsSource", "Source",
-            });
-    internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(17);
-    internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "Name", "InputConfig",
-            });
-    internal_static_google_cloud_redis_v1_GcsDestination_descriptor =
-        getDescriptor().getMessageTypes().get(18);
-    internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_GcsDestination_descriptor,
-            new java.lang.String[] {
-              "Uri",
-            });
-    internal_static_google_cloud_redis_v1_OutputConfig_descriptor =
-        getDescriptor().getMessageTypes().get(19);
-    internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_OutputConfig_descriptor,
-            new java.lang.String[] {
-              "GcsDestination", "Destination",
-            });
-    internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(20);
-    internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "Name", "OutputConfig",
-            });
-    internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor =
-        getDescriptor().getMessageTypes().get(21);
-    internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor,
-            new java.lang.String[] {
-              "Name", "DataProtectionMode",
-            });
-    internal_static_google_cloud_redis_v1_OperationMetadata_descriptor =
-        getDescriptor().getMessageTypes().get(22);
-    internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_OperationMetadata_descriptor,
-            new java.lang.String[] {
-              "CreateTime",
-              "EndTime",
-              "Target",
-              "Verb",
-              "StatusDetail",
-              "CancelRequested",
-              "ApiVersion",
-            });
-    internal_static_google_cloud_redis_v1_LocationMetadata_descriptor =
-        getDescriptor().getMessageTypes().get(23);
-    internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_LocationMetadata_descriptor,
-            new java.lang.String[] {
-              "AvailableZones",
-            });
-    internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor =
-        internal_static_google_cloud_redis_v1_LocationMetadata_descriptor.getNestedTypes().get(0);
-    internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
-    internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor =
-        getDescriptor().getMessageTypes().get(24);
-    internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor,
-            new java.lang.String[] {});
-    internal_static_google_cloud_redis_v1_TlsCertificate_descriptor =
-        getDescriptor().getMessageTypes().get(25);
-    internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_redis_v1_TlsCertificate_descriptor,
-            new java.lang.String[] {
-              "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint",
-            });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.ClientProto.defaultHost);
-    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
-    registry.add(com.google.api.AnnotationsProto.http);
-    registry.add(com.google.api.ClientProto.methodSignature);
-    registry.add(com.google.api.ClientProto.oauthScopes);
-    registry.add(com.google.api.ResourceProto.resource);
-    registry.add(com.google.api.ResourceProto.resourceReference);
-    registry.add(com.google.longrunning.OperationsProto.operationInfo);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
-    com.google.api.AnnotationsProto.getDescriptor();
-    com.google.api.ClientProto.getDescriptor();
-    com.google.api.FieldBehaviorProto.getDescriptor();
-    com.google.api.ResourceProto.getDescriptor();
-    com.google.longrunning.OperationsProto.getDescriptor();
-    com.google.protobuf.DurationProto.getDescriptor();
-    com.google.protobuf.FieldMaskProto.getDescriptor();
-    com.google.protobuf.TimestampProto.getDescriptor();
-    com.google.type.DayOfWeekProto.getDescriptor();
-    com.google.type.TimeOfDayProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java
deleted file mode 100644
index 28ade820..00000000
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java
+++ /dev/null
@@ -1,58 +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/redis/v1/cloud_redis.proto
-
-package com.google.cloud.redis.v1;
-
-public interface DeleteInstanceRequestOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.DeleteInstanceRequest)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java deleted file mode 100644 index f1bfdec8..00000000 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface GetInstanceAuthStringRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceAuthStringRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index a179a2fe..00000000 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * 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-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java deleted file mode 100644 index 44537b46..00000000 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java +++ /dev/null @@ -1,50 +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/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface InstanceAuthStringOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.InstanceAuthString) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * - * @return The authString. - */ - java.lang.String getAuthString(); - /** - * - * - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * - * @return The bytes for authString. - */ - com.google.protobuf.ByteString getAuthStringBytes(); -} diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java deleted file mode 100644 index a0bc2627..00000000 --- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.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/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface ZoneMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ZoneMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java deleted file mode 100644 index 57d3f714..00000000 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java +++ /dev/null @@ -1,688 +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/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public final class CloudRedisServiceBetaProto { - private CloudRedisServiceBetaProto() {} - - 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_redis_v1beta1_NodeInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_TlsCertificate_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/redis/v1beta1/cloud_redis" - + ".proto\022\032google.cloud.redis.v1beta1\032\034goog" - + "le/api/annotations.proto\032\027google/api/cli" - + "ent.proto\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032#google/lo" - + "ngrunning/operations.proto\032\036google/proto" - + "buf/duration.proto\032 google/protobuf/fiel" - + "d_mask.proto\032\037google/protobuf/timestamp." - + "proto\032\033google/type/dayofweek.proto\032\033goog" - + "le/type/timeofday.proto\".\n\010NodeInfo\022\017\n\002i" - + "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\245\021\n\010Inst" - + "ance\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030" - + "\002 \001(\t\022@\n\006labels\030\003 \003(\01320.google.cloud.red" - + "is.v1beta1.Instance.LabelsEntry\022\030\n\013locat" - + "ion_id\030\004 \001(\tB\003\340A\001\022$\n\027alternative_locatio" - + "n_id\030\005 \001(\tB\003\340A\001\022\032\n\rredis_version\030\007 \001(\tB\003" - + "\340A\001\022\036\n\021reserved_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022s" - + "econdary_ip_range\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001" - + "(\tB\003\340A\003\022\021\n\004port\030\013 \001(\005B\003\340A\003\022 \n\023current_lo" - + "cation_id\030\014 \001(\tB\003\340A\003\0224\n\013create_time\030\r \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n\005st" - + "ate\030\016 \001(\0162*.google.cloud.redis.v1beta1.I" - + "nstance.StateB\003\340A\003\022\033\n\016status_message\030\017 \001" - + "(\tB\003\340A\003\022R\n\rredis_configs\030\020 \003(\01326.google." - + "cloud.redis.v1beta1.Instance.RedisConfig" - + "sEntryB\003\340A\001\022<\n\004tier\030\021 \001(\0162).google.cloud" - + ".redis.v1beta1.Instance.TierB\003\340A\002\022\033\n\016mem" - + "ory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022authorized_net" - + "work\030\024 \001(\tB\003\340A\001\022%\n\030persistence_iam_ident" - + "ity\030\025 \001(\tB\003\340A\003\022K\n\014connect_mode\030\026 \001(\01620.g" - + "oogle.cloud.redis.v1beta1.Instance.Conne" - + "ctModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003\340A\001\022H" - + "\n\017server_ca_certs\030\031 \003(\0132*.google.cloud.r" - + "edis.v1beta1.TlsCertificateB\003\340A\003\022`\n\027tran" - + "sit_encryption_mode\030\032 \001(\0162:.google.cloud" - + ".redis.v1beta1.Instance.TransitEncryptio" - + "nModeB\003\340A\001\022N\n\022maintenance_policy\030\033 \001(\0132-" - + ".google.cloud.redis.v1beta1.MaintenanceP" - + "olicyB\003\340A\001\022R\n\024maintenance_schedule\030\034 \001(\013" - + "2/.google.cloud.redis.v1beta1.Maintenanc" - + "eScheduleB\003\340A\003\022\032\n\rreplica_count\030\037 \001(\005B\003\340" - + "A\001\0228\n\005nodes\030 \003(\0132$.google.cloud.redis.v" - + "1beta1.NodeInfoB\003\340A\003\022\032\n\rread_endpoint\030! " - + "\001(\tB\003\340A\003\022\037\n\022read_endpoint_port\030\" \001(\005B\003\340A" - + "\003\022V\n\022read_replicas_mode\030# \001(\01625.google.c" - + "loud.redis.v1beta1.Instance.ReadReplicas" - + "ModeB\003\340A\001\022N\n\022persistence_config\030% \001(\0132-." - + "google.cloud.redis.v1beta1.PersistenceCo" - + "nfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\0323\n\021RedisConfigsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005" - + "READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tR" - + "EPAIRING\020\005\022\017\n\013MAINTENANCE\020\006\022\r\n\tIMPORTING" - + "\020\010\022\020\n\014FAILING_OVER\020\n\"8\n\004Tier\022\024\n\020TIER_UNS" - + "PECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013STANDARD_HA\020\003\"[" - + "\n\013ConnectMode\022\034\n\030CONNECT_MODE_UNSPECIFIE" - + "D\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032\n\026PRIVATE_SERVI" - + "CE_ACCESS\020\002\"i\n\025TransitEncryptionMode\022\'\n#" - + "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022\031\n" - + "\025SERVER_AUTHENTICATION\020\001\022\014\n\010DISABLED\020\002\"m" - + "\n\020ReadReplicasMode\022\"\n\036READ_REPLICAS_MODE" - + "_UNSPECIFIED\020\000\022\032\n\026READ_REPLICAS_DISABLED" - + "\020\001\022\031\n\025READ_REPLICAS_ENABLED\020\002:`\352A]\n\035redi" - + "s.googleapis.com/Instance\022\"2/v1beta1/{parent=pr" - + "ojects/*/locations/*}/instances:\010instanc" - + "e\332A\033parent,instance_id,instance\312A:\n#goog" - + "le.cloud.redis.v1beta1.Instance\022\023google." - + "protobuf.Any\022\206\002\n\016UpdateInstance\0221.google" - + ".cloud.redis.v1beta1.UpdateInstanceReque" - + "st\032\035.google.longrunning.Operation\"\241\001\202\323\344\223" - + "\002G2;/v1beta1/{instance.name=projects/*/l" - + "ocations/*/instances/*}:\010instance\332A\024upda" - + "te_mask,instance\312A:\n#google.cloud.redis." - + "v1beta1.Instance\022\023google.protobuf.Any\022\376\001" - + "\n\017UpgradeInstance\0222.google.cloud.redis.v" - + "1beta1.UpgradeInstanceRequest\032\035.google.l" - + "ongrunning.Operation\"\227\001\202\323\344\223\002?\":/v1beta1/" - + "{name=projects/*/locations/*/instances/*" - + "}:upgrade:\001*\332A\022name,redis_version\312A:\n#go" - + "ogle.cloud.redis.v1beta1.Instance\022\023googl" - + "e.protobuf.Any\022\372\001\n\016ImportInstance\0221.goog" - + "le.cloud.redis.v1beta1.ImportInstanceReq" - + "uest\032\035.google.longrunning.Operation\"\225\001\202\323" - + "\344\223\002>\"9/v1beta1/{name=projects/*/location" - + "s/*/instances/*}:import:\001*\332A\021name,input_" - + "config\312A:\n#google.cloud.redis.v1beta1.In" - + "stance\022\023google.protobuf.Any\022\373\001\n\016ExportIn" - + "stance\0221.google.cloud.redis.v1beta1.Expo" - + "rtInstanceRequest\032\035.google.longrunning.O" - + "peration\"\226\001\202\323\344\223\002>\"9/v1beta1/{name=projec" - + "ts/*/locations/*/instances/*}:export:\001*\332" - + "A\022name,output_config\312A:\n#google.cloud.re" - + "dis.v1beta1.Instance\022\023google.protobuf.An" - + "y\022\210\002\n\020FailoverInstance\0223.google.cloud.re" - + "dis.v1beta1.FailoverInstanceRequest\032\035.go" - + "ogle.longrunning.Operation\"\237\001\202\323\344\223\002@\";/v1" - + "beta1/{name=projects/*/locations/*/insta" - + "nces/*}:failover:\001*\332A\031name,data_protecti" - + "on_mode\312A:\n#google.cloud.redis.v1beta1.I" - + "nstance\022\023google.protobuf.Any\022\324\001\n\016DeleteI" - + "nstance\0221.google.cloud.redis.v1beta1.Del" - + "eteInstanceRequest\032\035.google.longrunning." - + "Operation\"p\202\323\344\223\0024*2/v1beta1/{name=projec" - + "ts/*/locations/*/instances/*}\332A\004name\312A,\n" - + "\025google.protobuf.Empty\022\023google.protobuf." - + "Any\022\252\002\n\025RescheduleMaintenance\0228.google.c" - + "loud.redis.v1beta1.RescheduleMaintenance" - + "Request\032\035.google.longrunning.Operation\"\267" - + "\001\202\323\344\223\002M\"H/v1beta1/{name=projects/*/locat" - + "ions/*/instances/*}:rescheduleMaintenanc" - + "e:\001*\332A$name, reschedule_type, schedule_t" - + "ime\312A:\n#google.cloud.redis.v1beta1.Insta" - + "nce\022\023google.protobuf.Any\032H\312A\024redis.googl" - + "eapis.com\322A.https://www.googleapis.com/a" - + "uth/cloud-platformB\177\n\036com.google.cloud.r" - + "edis.v1beta1B\032CloudRedisServiceBetaProto" - + "P\001Z?google.golang.org/genproto/googleapi" - + "s/cloud/redis/v1beta1;redisb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DayOfWeekProto.getDescriptor(), - com.google.type.TimeOfDayProto.getDescriptor(), - }); - internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor, - new java.lang.String[] { - "Id", "Zone", - }); - internal_static_google_cloud_redis_v1beta1_Instance_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_Instance_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Labels", - "LocationId", - "AlternativeLocationId", - "RedisVersion", - "ReservedIpRange", - "SecondaryIpRange", - "Host", - "Port", - "CurrentLocationId", - "CreateTime", - "State", - "StatusMessage", - "RedisConfigs", - "Tier", - "MemorySizeGb", - "AuthorizedNetwork", - "PersistenceIamIdentity", - "ConnectMode", - "AuthEnabled", - "ServerCaCerts", - "TransitEncryptionMode", - "MaintenancePolicy", - "MaintenanceSchedule", - "ReplicaCount", - "Nodes", - "ReadEndpoint", - "ReadEndpointPort", - "ReadReplicasMode", - "PersistenceConfig", - }); - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor = - internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor, - new java.lang.String[] { - "PersistenceMode", "RdbSnapshotPeriod", "RdbNextSnapshotTime", "RdbSnapshotStartTime", - }); - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor, - new java.lang.String[] { - "Name", "RescheduleType", "ScheduleTime", - }); - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow", - }); - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor, - new java.lang.String[] { - "Day", "StartTime", "Duration", - }); - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime", - }); - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor, - new java.lang.String[] { - "AuthString", - }); - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor, - new java.lang.String[] { - "Parent", "InstanceId", "Instance", - }); - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Instance", - }); - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "RedisVersion", - }); - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "InputConfig", - }); - internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "OutputConfig", - }); - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "DataProtectionMode", - }); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor, - new java.lang.String[] { - "AvailableZones", - }); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor = - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor, - new java.lang.String[] { - "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DayOfWeekProto.getDescriptor(); - com.google.type.TimeOfDayProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index d5a75e1e..00000000 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface DeleteInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java deleted file mode 100644 index 7788f8de..00000000 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface GetInstanceAuthStringRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index cd912363..00000000 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * - * 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-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java deleted file mode 100644 index 0e041967..00000000 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java +++ /dev/null @@ -1,50 +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/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface InstanceAuthStringOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.InstanceAuthString) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * - * @return The authString. - */ - java.lang.String getAuthString(); - /** - * - * - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * - * @return The bytes for authString. - */ - com.google.protobuf.ByteString getAuthStringBytes(); -} diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java deleted file mode 100644 index 2668fe68..00000000 --- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.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/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface ZoneMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ZoneMetadata) - com.google.protobuf.MessageOrBuilder {} From 8fd0c7f1b14afcf1cb42ce3a7a6b45603916d4ba Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:06:29 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../cloud/redis/v1/CloudRedisClient.java | 56 +- .../cloud/redis/v1/CloudRedisSettings.java | 7 +- .../google/cloud/redis/v1/gapic_metadata.json | 0 .../google/cloud/redis/v1/package-info.java | 10 +- .../cloud/redis/v1/stub/CloudRedisStub.java | 0 .../redis/v1/stub/CloudRedisStubSettings.java | 6 +- .../stub/GrpcCloudRedisCallableFactory.java | 0 .../redis/v1/stub/GrpcCloudRedisStub.java | 1 - .../HttpJsonCloudRedisCallableFactory.java | 0 .../redis/v1/stub/HttpJsonCloudRedisStub.java | 1 - .../cloud/redis/v1beta1/CloudRedisClient.java | 56 +- .../redis/v1beta1/CloudRedisSettings.java | 7 +- .../cloud/redis/v1beta1/gapic_metadata.json | 0 .../cloud/redis/v1beta1/package-info.java | 10 +- .../redis/v1beta1/stub/CloudRedisStub.java | 0 .../v1beta1/stub/CloudRedisStubSettings.java | 6 +- .../stub/GrpcCloudRedisCallableFactory.java | 0 .../v1beta1/stub/GrpcCloudRedisStub.java | 1 - .../HttpJsonCloudRedisCallableFactory.java | 0 .../v1beta1/stub/HttpJsonCloudRedisStub.java | 1 - .../v1/CloudRedisClientHttpJsonTest.java | 0 .../cloud/redis/v1/CloudRedisClientTest.java | 0 .../google/cloud/redis/v1/MockCloudRedis.java | 0 .../cloud/redis/v1/MockCloudRedisImpl.java | 0 .../v1beta1/CloudRedisClientHttpJsonTest.java | 0 .../redis/v1beta1/CloudRedisClientTest.java | 0 .../cloud/redis/v1beta1/MockCloudRedis.java | 0 .../redis/v1beta1/MockCloudRedisImpl.java | 0 .../google/cloud/redis/v1/CloudRedisGrpc.java | 1117 +++-- .../cloud/redis/v1beta1/CloudRedisGrpc.java | 1136 +++-- .../redis/v1/CloudRedisServiceV1Proto.java | 602 --- .../v1/DeleteInstanceRequestOrBuilder.java | 33 - ...GetInstanceAuthStringRequestOrBuilder.java | 33 - .../redis/v1/GetInstanceRequestOrBuilder.java | 33 - .../redis/v1/InstanceAuthStringOrBuilder.java | 29 - .../cloud/redis/v1/ZoneMetadataOrBuilder.java | 9 - .../v1beta1/CloudRedisServiceBetaProto.java | 615 --- .../DeleteInstanceRequestOrBuilder.java | 33 - ...GetInstanceAuthStringRequestOrBuilder.java | 33 - .../v1beta1/GetInstanceRequestOrBuilder.java | 33 - .../v1beta1/InstanceAuthStringOrBuilder.java | 29 - .../redis/v1beta1/ZoneMetadataOrBuilder.java | 9 - .../redis/v1/CloudRedisServiceV1Proto.java | 678 +++ .../cloud/redis/v1/CreateInstanceRequest.java | 543 ++- .../v1/CreateInstanceRequestOrBuilder.java | 61 +- .../cloud/redis/v1/DeleteInstanceRequest.java | 332 +- .../v1/DeleteInstanceRequestOrBuilder.java | 58 + .../cloud/redis/v1/ExportInstanceRequest.java | 453 +- .../v1/ExportInstanceRequestOrBuilder.java | 47 +- .../redis/v1/FailoverInstanceRequest.java | 513 ++- .../v1/FailoverInstanceRequestOrBuilder.java | 49 +- .../google/cloud/redis/v1/GcsDestination.java | 298 +- .../redis/v1/GcsDestinationOrBuilder.java | 27 +- .../com/google/cloud/redis/v1/GcsSource.java | 294 +- .../cloud/redis/v1/GcsSourceOrBuilder.java | 27 +- .../v1/GetInstanceAuthStringRequest.java | 342 +- ...GetInstanceAuthStringRequestOrBuilder.java | 58 + .../cloud/redis/v1/GetInstanceRequest.java | 329 +- .../redis/v1/GetInstanceRequestOrBuilder.java | 58 + .../cloud/redis/v1/ImportInstanceRequest.java | 453 +- .../v1/ImportInstanceRequestOrBuilder.java | 47 +- .../google/cloud/redis/v1/InputConfig.java | 372 +- .../cloud/redis/v1/InputConfigOrBuilder.java | 26 +- .../com/google/cloud/redis/v1/Instance.java | 3694 ++++++++++------ .../cloud/redis/v1/InstanceAuthString.java | 301 +- .../redis/v1/InstanceAuthStringOrBuilder.java | 50 + .../google/cloud/redis/v1/InstanceName.java | 0 .../cloud/redis/v1/InstanceOrBuilder.java | 429 +- .../cloud/redis/v1/ListInstancesRequest.java | 442 +- .../v1/ListInstancesRequestOrBuilder.java | 47 +- .../cloud/redis/v1/ListInstancesResponse.java | 562 ++- .../v1/ListInstancesResponseOrBuilder.java | 64 +- .../cloud/redis/v1/LocationMetadata.java | 525 ++- .../redis/v1/LocationMetadataOrBuilder.java | 69 +- .../google/cloud/redis/v1/LocationName.java | 0 .../cloud/redis/v1/MaintenancePolicy.java | 842 ++-- .../redis/v1/MaintenancePolicyOrBuilder.java | 95 +- .../cloud/redis/v1/MaintenanceSchedule.java | 687 +-- .../v1/MaintenanceScheduleOrBuilder.java | 82 +- .../com/google/cloud/redis/v1/NodeInfo.java | 373 +- .../cloud/redis/v1/NodeInfoOrBuilder.java | 36 +- .../cloud/redis/v1/OperationMetadata.java | 761 ++-- .../redis/v1/OperationMetadataOrBuilder.java | 73 +- .../google/cloud/redis/v1/OutputConfig.java | 362 +- .../cloud/redis/v1/OutputConfigOrBuilder.java | 26 +- .../v1/RescheduleMaintenanceRequest.java | 663 ++- ...RescheduleMaintenanceRequestOrBuilder.java | 66 +- .../google/cloud/redis/v1/TlsCertificate.java | 736 ++-- .../redis/v1/TlsCertificateOrBuilder.java | 79 +- .../cloud/redis/v1/UpdateInstanceRequest.java | 492 ++- .../v1/UpdateInstanceRequestOrBuilder.java | 52 +- .../redis/v1/UpgradeInstanceRequest.java | 415 +- .../v1/UpgradeInstanceRequestOrBuilder.java | 44 +- .../redis/v1/WeeklyMaintenanceWindow.java | 493 ++- .../v1/WeeklyMaintenanceWindowOrBuilder.java | 49 +- .../google/cloud/redis/v1/ZoneMetadata.java | 218 +- .../cloud/redis/v1/ZoneMetadataOrBuilder.java | 24 + .../google/cloud/redis/v1/cloud_redis.proto | 0 .../v1beta1/CloudRedisServiceBetaProto.java | 688 +++ .../redis/v1beta1/CreateInstanceRequest.java | 567 ++- .../CreateInstanceRequestOrBuilder.java | 64 +- .../redis/v1beta1/DeleteInstanceRequest.java | 339 +- .../DeleteInstanceRequestOrBuilder.java | 58 + .../redis/v1beta1/ExportInstanceRequest.java | 457 +- .../ExportInstanceRequestOrBuilder.java | 47 +- .../v1beta1/FailoverInstanceRequest.java | 516 ++- .../FailoverInstanceRequestOrBuilder.java | 49 +- .../cloud/redis/v1beta1/GcsDestination.java | 301 +- .../v1beta1/GcsDestinationOrBuilder.java | 27 +- .../google/cloud/redis/v1beta1/GcsSource.java | 298 +- .../redis/v1beta1/GcsSourceOrBuilder.java | 27 +- .../v1beta1/GetInstanceAuthStringRequest.java | 342 +- ...GetInstanceAuthStringRequestOrBuilder.java | 58 + .../redis/v1beta1/GetInstanceRequest.java | 339 +- .../v1beta1/GetInstanceRequestOrBuilder.java | 58 + .../redis/v1beta1/ImportInstanceRequest.java | 457 +- .../ImportInstanceRequestOrBuilder.java | 47 +- .../cloud/redis/v1beta1/InputConfig.java | 372 +- .../redis/v1beta1/InputConfigOrBuilder.java | 26 +- .../google/cloud/redis/v1beta1/Instance.java | 3859 +++++++++++------ .../redis/v1beta1/InstanceAuthString.java | 311 +- .../v1beta1/InstanceAuthStringOrBuilder.java | 50 + .../cloud/redis/v1beta1/InstanceName.java | 0 .../redis/v1beta1/InstanceOrBuilder.java | 450 +- .../redis/v1beta1/ListInstancesRequest.java | 452 +- .../ListInstancesRequestOrBuilder.java | 47 +- .../redis/v1beta1/ListInstancesResponse.java | 570 ++- .../ListInstancesResponseOrBuilder.java | 63 +- .../cloud/redis/v1beta1/LocationMetadata.java | 528 ++- .../v1beta1/LocationMetadataOrBuilder.java | 68 +- .../cloud/redis/v1beta1/LocationName.java | 0 .../redis/v1beta1/MaintenancePolicy.java | 859 ++-- .../v1beta1/MaintenancePolicyOrBuilder.java | 99 +- .../redis/v1beta1/MaintenanceSchedule.java | 697 +-- .../v1beta1/MaintenanceScheduleOrBuilder.java | 82 +- .../google/cloud/redis/v1beta1/NodeInfo.java | 377 +- .../redis/v1beta1/NodeInfoOrBuilder.java | 36 +- .../cloud/redis/v1beta1/OutputConfig.java | 370 +- .../redis/v1beta1/OutputConfigOrBuilder.java | 26 +- .../redis/v1beta1/PersistenceConfig.java | 882 ++-- .../v1beta1/PersistenceConfigOrBuilder.java | 86 +- .../v1beta1/RescheduleMaintenanceRequest.java | 664 ++- ...RescheduleMaintenanceRequestOrBuilder.java | 66 +- .../cloud/redis/v1beta1/TlsCertificate.java | 739 ++-- .../v1beta1/TlsCertificateOrBuilder.java | 79 +- .../redis/v1beta1/UpdateInstanceRequest.java | 516 ++- .../UpdateInstanceRequestOrBuilder.java | 55 +- .../redis/v1beta1/UpgradeInstanceRequest.java | 421 +- .../UpgradeInstanceRequestOrBuilder.java | 44 +- .../v1beta1/WeeklyMaintenanceWindow.java | 496 ++- .../WeeklyMaintenanceWindowOrBuilder.java | 49 +- .../cloud/redis/v1beta1/ZoneMetadata.java | 225 +- .../redis/v1beta1/ZoneMetadataOrBuilder.java | 24 + .../cloud/redis/v1beta1/cloud_redis.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameStringInstance.java | 0 ...yncCreateInstanceStringStringInstance.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 0 .../SyncDeleteInstanceInstancename.java | 0 .../SyncDeleteInstanceString.java | 0 .../exportinstance/AsyncExportInstance.java | 0 .../AsyncExportInstanceLRO.java | 0 .../exportinstance/SyncExportInstance.java | 0 .../SyncExportInstanceStringOutputconfig.java | 0 .../AsyncFailoverInstance.java | 0 .../AsyncFailoverInstanceLRO.java | 0 .../SyncFailoverInstance.java | 0 ...overinstancerequestdataprotectionmode.java | 0 ...overinstancerequestdataprotectionmode.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../AsyncGetInstanceAuthString.java | 0 .../SyncGetInstanceAuthString.java | 0 ...SyncGetInstanceAuthStringInstancename.java | 0 .../SyncGetInstanceAuthStringString.java | 0 .../importinstance/AsyncImportInstance.java | 0 .../AsyncImportInstanceLRO.java | 0 .../importinstance/SyncImportInstance.java | 0 .../SyncImportInstanceStringInputconfig.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../AsyncRescheduleMaintenance.java | 0 .../AsyncRescheduleMaintenanceLRO.java | 0 .../SyncRescheduleMaintenance.java | 0 ...tenancerequestrescheduletypeTimestamp.java | 0 ...tenancerequestrescheduletypeTimestamp.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceFieldmaskInstance.java | 0 .../upgradeinstance/AsyncUpgradeInstance.java | 0 .../AsyncUpgradeInstanceLRO.java | 0 .../upgradeinstance/SyncUpgradeInstance.java | 0 ...SyncUpgradeInstanceInstancenameString.java | 0 .../SyncUpgradeInstanceStringString.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameStringInstance.java | 0 ...yncCreateInstanceStringStringInstance.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 0 .../SyncDeleteInstanceInstancename.java | 0 .../SyncDeleteInstanceString.java | 0 .../exportinstance/AsyncExportInstance.java | 0 .../AsyncExportInstanceLRO.java | 0 .../exportinstance/SyncExportInstance.java | 0 .../SyncExportInstanceStringOutputconfig.java | 0 .../AsyncFailoverInstance.java | 0 .../AsyncFailoverInstanceLRO.java | 0 .../SyncFailoverInstance.java | 0 ...overinstancerequestdataprotectionmode.java | 0 ...overinstancerequestdataprotectionmode.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../AsyncGetInstanceAuthString.java | 0 .../SyncGetInstanceAuthString.java | 0 ...SyncGetInstanceAuthStringInstancename.java | 0 .../SyncGetInstanceAuthStringString.java | 0 .../importinstance/AsyncImportInstance.java | 0 .../AsyncImportInstanceLRO.java | 0 .../importinstance/SyncImportInstance.java | 0 .../SyncImportInstanceStringInputconfig.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../AsyncRescheduleMaintenance.java | 0 .../AsyncRescheduleMaintenanceLRO.java | 0 .../SyncRescheduleMaintenance.java | 0 ...tenancerequestrescheduletypeTimestamp.java | 0 ...tenancerequestrescheduletypeTimestamp.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceFieldmaskInstance.java | 0 .../upgradeinstance/AsyncUpgradeInstance.java | 0 .../AsyncUpgradeInstanceLRO.java | 0 .../upgradeinstance/SyncUpgradeInstance.java | 0 ...SyncUpgradeInstanceInstancenameString.java | 0 .../SyncUpgradeInstanceStringString.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 264 files changed, 25283 insertions(+), 14966 deletions(-) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java (97%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/package-info.java (82%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java (100%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java (99%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/package-info.java (82%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java (99%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java (100%) rename {owl-bot-staging/v1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-redis => google-cloud-redis}/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-redis-v1 => grpc-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java (53%) rename {owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1 => grpc-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java (52%) delete mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java create mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java (66%) create mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsDestination.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsSource.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java (66%) create mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java (66%) create mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InputConfig.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/Instance.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java (68%) create mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InstanceName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/NodeInfo.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OutputConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java (67%) create mode 100644 proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-redis-v1 => proto-google-cloud-redis-v1}/src/main/proto/google/cloud/redis/v1/cloud_redis.proto (100%) create mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java (67%) create mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java (53%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java (50%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java (67%) create mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java (67%) create mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/Instance.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java (69%) create mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java (80%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java (83%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java (53%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java (55%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java (68%) create mode 100644 proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1 => proto-google-cloud-redis-v1beta1}/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java index 1731ad41..03f0ecf3 100644 --- a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java @@ -50,17 +50,17 @@ * defines the following resource model for managing Redis instances: * *
    - *
  • The service works with a collection of cloud projects, named: `/projects/*` - *
  • Each project has a collection of available locations, named: `/locations/*` - *
  • Each location has a collection of Redis instances, named: `/instances/*` - *
  • As such, Redis instances are resources of the form: + *
  • The service works with a collection of cloud projects, named: `/projects/*` + *
  • Each project has a collection of available locations, named: `/locations/*` + *
  • Each location has a collection of Redis instances, named: `/instances/*` + *
  • As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

Note that location_id must be referring to a GCP `region`; for example: * *

    - *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` *
* *

This class provides the ability to make remote calls to the backing service through method @@ -82,13 +82,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. *
* @@ -220,7 +220,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -259,7 +259,7 @@ public final ListInstancesPagedResponse listInstances(LocationName parent) { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -295,7 +295,7 @@ public final ListInstancesPagedResponse listInstances(String parent) { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -334,7 +334,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -374,7 +374,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -653,11 +653,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: *

    - *
  • Must contain only lowercase letters, numbers, and hyphens. - *
  • Must start with a letter. - *
  • Must be between 1-40 characters. - *
  • Must end with a number or a letter. - *
  • Must be unique within the customer project / location + *
  • Must contain only lowercase letters, numbers, and hyphens. + *
  • Must start with a letter. + *
  • Must be between 1-40 characters. + *
  • Must end with a number or a letter. + *
  • Must be unique within the customer project / location *
* * @param instance Required. A Redis [Instance] resource @@ -707,11 +707,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: *
    - *
  • Must contain only lowercase letters, numbers, and hyphens. - *
  • Must start with a letter. - *
  • Must be between 1-40 characters. - *
  • Must end with a number or a letter. - *
  • Must be unique within the customer project / location + *
  • Must contain only lowercase letters, numbers, and hyphens. + *
  • Must start with a letter. + *
  • Must be between 1-40 characters. + *
  • Must end with a number or a letter. + *
  • Must be unique within the customer project / location *
* * @param instance Required. A Redis [Instance] resource @@ -1840,7 +1840,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1890,7 +1893,10 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java index ce62b4a0..35cb5cf7 100644 --- a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java @@ -29,7 +29,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.redis.v1.stub.CloudRedisStubSettings; @@ -46,9 +45,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java similarity index 82% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java index 78fb55fa..9fdd69e4 100644 --- a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java @@ -29,17 +29,17 @@ * defines the following resource model for managing Redis instances: * *

    - *
  • The service works with a collection of cloud projects, named: `/projects/*` - *
  • Each project has a collection of available locations, named: `/locations/*` - *
  • Each location has a collection of Redis instances, named: `/instances/*` - *
  • As such, Redis instances are resources of the form: + *
  • The service works with a collection of cloud projects, named: `/projects/*` + *
  • Each project has a collection of available locations, named: `/locations/*` + *
  • Each location has a collection of Redis instances, named: `/instances/*` + *
  • As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

Note that location_id must be referring to a GCP `region`; for example: * *

    - *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` *
* *

Sample for CloudRedisClient: diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java index ca056162..7a2e730d 100644 --- a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java @@ -80,9 +80,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java index 24d98ea2..528e750a 100644 --- a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java @@ -47,7 +47,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java index 298ca1d1..d958da7d 100644 --- a/owl-bot-staging/v1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java index 1384af50..f9164c8e 100644 --- a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -51,17 +51,17 @@ * defines the following resource model for managing Redis instances: * *

    - *
  • The service works with a collection of cloud projects, named: `/projects/*` - *
  • Each project has a collection of available locations, named: `/locations/*` - *
  • Each location has a collection of Redis instances, named: `/instances/*` - *
  • As such, Redis instances are resources of the form: + *
  • The service works with a collection of cloud projects, named: `/projects/*` + *
  • Each project has a collection of available locations, named: `/locations/*` + *
  • Each location has a collection of Redis instances, named: `/instances/*` + *
  • As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

Note that location_id must be referring to a GCP `region`; for example: * *

    - *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` *
* *

This class provides the ability to make remote calls to the backing service through method @@ -83,13 +83,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. *
* @@ -222,7 +222,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -261,7 +261,7 @@ public final ListInstancesPagedResponse listInstances(LocationName parent) { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -297,7 +297,7 @@ public final ListInstancesPagedResponse listInstances(String parent) { *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -336,7 +336,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -376,7 +376,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque *

The location should have the following format: * *

    - *
  • `projects/{project_id}/locations/{location_id}` + *
  • `projects/{project_id}/locations/{location_id}` *
* *

If `location_id` is specified as `-` (wildcard), then all regions available to the project @@ -655,11 +655,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: *

    - *
  • Must contain only lowercase letters, numbers, and hyphens. - *
  • Must start with a letter. - *
  • Must be between 1-40 characters. - *
  • Must end with a number or a letter. - *
  • Must be unique within the customer project / location + *
  • Must contain only lowercase letters, numbers, and hyphens. + *
  • Must start with a letter. + *
  • Must be between 1-40 characters. + *
  • Must end with a number or a letter. + *
  • Must be unique within the customer project / location *
* * @param instance Required. A Redis [Instance] resource @@ -709,11 +709,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Redis instance in the customer project with * the following restrictions: *
    - *
  • Must contain only lowercase letters, numbers, and hyphens. - *
  • Must start with a letter. - *
  • Must be between 1-40 characters. - *
  • Must end with a number or a letter. - *
  • Must be unique within the customer project / location + *
  • Must contain only lowercase letters, numbers, and hyphens. + *
  • Must start with a letter. + *
  • Must be between 1-40 characters. + *
  • Must end with a number or a letter. + *
  • Must be unique within the customer project / location *
* * @param instance Required. A Redis [Instance] resource @@ -1836,7 +1836,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1886,7 +1889,10 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index abfc516c..347d6a82 100644 --- a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -29,7 +29,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.redis.v1beta1.stub.CloudRedisStubSettings; @@ -47,9 +46,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java similarity index 82% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java index b339c78a..9b934c1d 100644 --- a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java @@ -29,17 +29,17 @@ * defines the following resource model for managing Redis instances: * *

    - *
  • The service works with a collection of cloud projects, named: `/projects/*` - *
  • Each project has a collection of available locations, named: `/locations/*` - *
  • Each location has a collection of Redis instances, named: `/instances/*` - *
  • As such, Redis instances are resources of the form: + *
  • The service works with a collection of cloud projects, named: `/projects/*` + *
  • Each project has a collection of available locations, named: `/locations/*` + *
  • Each location has a collection of Redis instances, named: `/instances/*` + *
  • As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

Note that location_id must be referring to a GCP `region`; for example: * *

    - *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *
  • `projects/redpepper-1290/locations/us-central1/instances/my-redis` *
* *

Sample for CloudRedisClient: diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index c9338346..d123b8b3 100644 --- a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -80,9 +80,9 @@ *

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

    - *
  • The default service address (redis.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 (redis.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 diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java index dbb63761..f1ea1032 100644 --- a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java @@ -48,7 +48,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/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java rename to google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java index e3b81b50..75d73306 100644 --- a/owl-bot-staging/v1beta1/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java +++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java diff --git a/owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedis.java diff --git a/owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java b/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java rename to google-cloud-redis/src/test/java/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java b/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java similarity index 53% rename from owl-bot-staging/v1/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java rename to grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java index 9ad60c5e..52740946 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java +++ b/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.redis.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

  * Configures and manages Cloud Memorystore for Redis instances
  * Google Cloud Memorystore for Redis v1
@@ -29,392 +46,519 @@ private CloudRedisGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.redis.v1.CloudRedis";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListInstancesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.ListInstancesRequest,
+          com.google.cloud.redis.v1.ListInstancesResponse>
+      getListInstancesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListInstances",
       requestType = com.google.cloud.redis.v1.ListInstancesRequest.class,
       responseType = com.google.cloud.redis.v1.ListInstancesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListInstancesMethod() {
-    io.grpc.MethodDescriptor getListInstancesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.ListInstancesRequest,
+          com.google.cloud.redis.v1.ListInstancesResponse>
+      getListInstancesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.ListInstancesRequest,
+            com.google.cloud.redis.v1.ListInstancesResponse>
+        getListInstancesMethod;
     if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
-          CloudRedisGrpc.getListInstancesMethod = getListInstancesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.ListInstancesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
-              .build();
+          CloudRedisGrpc.getListInstancesMethod =
+              getListInstancesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.ListInstancesRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
+                      .build();
         }
       }
     }
     return getListInstancesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.GetInstanceRequest, com.google.cloud.redis.v1.Instance>
+      getGetInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstance",
       requestType = com.google.cloud.redis.v1.GetInstanceRequest.class,
       responseType = com.google.cloud.redis.v1.Instance.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetInstanceMethod() {
-    io.grpc.MethodDescriptor getGetInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.GetInstanceRequest, com.google.cloud.redis.v1.Instance>
+      getGetInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.GetInstanceRequest, com.google.cloud.redis.v1.Instance>
+        getGetInstanceMethod;
     if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
-          CloudRedisGrpc.getGetInstanceMethod = getGetInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.GetInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.Instance.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
-              .build();
+          CloudRedisGrpc.getGetInstanceMethod =
+              getGetInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.GetInstanceRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.Instance.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
+                      .build();
         }
       }
     }
     return getGetInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.GetInstanceAuthStringRequest,
+          com.google.cloud.redis.v1.InstanceAuthString>
+      getGetInstanceAuthStringMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstanceAuthString",
       requestType = com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class,
       responseType = com.google.cloud.redis.v1.InstanceAuthString.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetInstanceAuthStringMethod() {
-    io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.GetInstanceAuthStringRequest,
+          com.google.cloud.redis.v1.InstanceAuthString>
+      getGetInstanceAuthStringMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.GetInstanceAuthStringRequest,
+            com.google.cloud.redis.v1.InstanceAuthString>
+        getGetInstanceAuthStringMethod;
     if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
-          CloudRedisGrpc.getGetInstanceAuthStringMethod = getGetInstanceAuthStringMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.GetInstanceAuthStringRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.InstanceAuthString.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
-              .build();
+        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod)
+            == null) {
+          CloudRedisGrpc.getGetInstanceAuthStringMethod =
+              getGetInstanceAuthStringMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.GetInstanceAuthStringRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.InstanceAuthString.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
+                      .build();
         }
       }
     }
     return getGetInstanceAuthStringMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.CreateInstanceRequest, com.google.longrunning.Operation>
+      getCreateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateInstance",
       requestType = com.google.cloud.redis.v1.CreateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateInstanceMethod() {
-    io.grpc.MethodDescriptor getCreateInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.CreateInstanceRequest, com.google.longrunning.Operation>
+      getCreateInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.CreateInstanceRequest, com.google.longrunning.Operation>
+        getCreateInstanceMethod;
     if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
-          CloudRedisGrpc.getCreateInstanceMethod = getCreateInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
-              .build();
+          CloudRedisGrpc.getCreateInstanceMethod =
+              getCreateInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
+                      .build();
         }
       }
     }
     return getCreateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.UpdateInstanceRequest, com.google.longrunning.Operation>
+      getUpdateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateInstance",
       requestType = com.google.cloud.redis.v1.UpdateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateInstanceMethod() {
-    io.grpc.MethodDescriptor getUpdateInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.UpdateInstanceRequest, com.google.longrunning.Operation>
+      getUpdateInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.UpdateInstanceRequest, com.google.longrunning.Operation>
+        getUpdateInstanceMethod;
     if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
-          CloudRedisGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
-              .build();
+          CloudRedisGrpc.getUpdateInstanceMethod =
+              getUpdateInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
+                      .build();
         }
       }
     }
     return getUpdateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpgradeInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.UpgradeInstanceRequest, com.google.longrunning.Operation>
+      getUpgradeInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance",
       requestType = com.google.cloud.redis.v1.UpgradeInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpgradeInstanceMethod() {
-    io.grpc.MethodDescriptor getUpgradeInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.UpgradeInstanceRequest, com.google.longrunning.Operation>
+      getUpgradeInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.UpgradeInstanceRequest, com.google.longrunning.Operation>
+        getUpgradeInstanceMethod;
     if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
-          CloudRedisGrpc.getUpgradeInstanceMethod = getUpgradeInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.UpgradeInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
-              .build();
+          CloudRedisGrpc.getUpgradeInstanceMethod =
+              getUpgradeInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.UpgradeInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
+                      .build();
         }
       }
     }
     return getUpgradeInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getImportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation>
+      getImportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportInstance",
       requestType = com.google.cloud.redis.v1.ImportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getImportInstanceMethod() {
-    io.grpc.MethodDescriptor getImportInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation>
+      getImportInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation>
+        getImportInstanceMethod;
     if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
-          CloudRedisGrpc.getImportInstanceMethod = getImportInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
-              .build();
+          CloudRedisGrpc.getImportInstanceMethod =
+              getImportInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
+                      .build();
         }
       }
     }
     return getImportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getExportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation>
+      getExportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ExportInstance",
       requestType = com.google.cloud.redis.v1.ExportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getExportInstanceMethod() {
-    io.grpc.MethodDescriptor getExportInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation>
+      getExportInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation>
+        getExportInstanceMethod;
     if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
-          CloudRedisGrpc.getExportInstanceMethod = getExportInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
-              .build();
+          CloudRedisGrpc.getExportInstanceMethod =
+              getExportInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
+                      .build();
         }
       }
     }
     return getExportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getFailoverInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.FailoverInstanceRequest, com.google.longrunning.Operation>
+      getFailoverInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "FailoverInstance",
       requestType = com.google.cloud.redis.v1.FailoverInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getFailoverInstanceMethod() {
-    io.grpc.MethodDescriptor getFailoverInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.FailoverInstanceRequest, com.google.longrunning.Operation>
+      getFailoverInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.FailoverInstanceRequest, com.google.longrunning.Operation>
+        getFailoverInstanceMethod;
     if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
-          CloudRedisGrpc.getFailoverInstanceMethod = getFailoverInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.FailoverInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
-              .build();
+          CloudRedisGrpc.getFailoverInstanceMethod =
+              getFailoverInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.FailoverInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
+                      .build();
         }
       }
     }
     return getFailoverInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.DeleteInstanceRequest, com.google.longrunning.Operation>
+      getDeleteInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteInstance",
       requestType = com.google.cloud.redis.v1.DeleteInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteInstanceMethod() {
-    io.grpc.MethodDescriptor getDeleteInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.DeleteInstanceRequest, com.google.longrunning.Operation>
+      getDeleteInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.DeleteInstanceRequest, com.google.longrunning.Operation>
+        getDeleteInstanceMethod;
     if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
-          CloudRedisGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
-              .build();
+          CloudRedisGrpc.getDeleteInstanceMethod =
+              getDeleteInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
+                      .build();
         }
       }
     }
     return getDeleteInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.RescheduleMaintenanceRequest, com.google.longrunning.Operation>
+      getRescheduleMaintenanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RescheduleMaintenance",
       requestType = com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRescheduleMaintenanceMethod() {
-    io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1.RescheduleMaintenanceRequest, com.google.longrunning.Operation>
+      getRescheduleMaintenanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1.RescheduleMaintenanceRequest,
+            com.google.longrunning.Operation>
+        getRescheduleMaintenanceMethod;
     if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
-          CloudRedisGrpc.getRescheduleMaintenanceMethod = getRescheduleMaintenanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
-              .build();
+        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod)
+            == null) {
+          CloudRedisGrpc.getRescheduleMaintenanceMethod =
+              getRescheduleMaintenanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1.RescheduleMaintenanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
+                      .build();
         }
       }
     }
     return getRescheduleMaintenanceMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static CloudRedisStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new CloudRedisStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new CloudRedisStub(channel, callOptions);
+          }
+        };
     return CloudRedisStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static CloudRedisBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static CloudRedisBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public CloudRedisBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new CloudRedisBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public CloudRedisBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new CloudRedisBlockingStub(channel, callOptions);
+          }
+        };
     return CloudRedisBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static CloudRedisFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static CloudRedisFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public CloudRedisFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new CloudRedisFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public CloudRedisFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new CloudRedisFutureStub(channel, callOptions);
+          }
+        };
     return CloudRedisFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -430,9 +574,11 @@ public CloudRedisFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static abstract class CloudRedisImplBase implements io.grpc.BindableService { + public abstract static class CloudRedisImplBase implements io.grpc.BindableService { /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -442,34 +588,48 @@ public static abstract class CloudRedisImplBase implements io.grpc.BindableServi
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + public void listInstances( + com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, + public void getInstance( + com.google.cloud.redis.v1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceAuthStringMethod(), responseObserver); + public void getInstanceAuthString( + com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceAuthStringMethod(), responseObserver); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -482,12 +642,16 @@ public void getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStrin
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, + public void createInstance( + com.google.cloud.redis.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); } /** + * + * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -495,23 +659,31 @@ public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest reque
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, + public void updateInstance( + com.google.cloud.redis.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); } /** + * + * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request, + public void upgradeInstance( + com.google.cloud.redis.v1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeInstanceMethod(), responseObserver); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -521,12 +693,16 @@ public void upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest req
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request, + public void importInstance( + com.google.cloud.redis.v1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportInstanceMethod(), responseObserver); } /** + * + * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -534,128 +710,136 @@ public void importInstance(com.google.cloud.redis.v1.ImportInstanceRequest reque
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request, + public void exportInstance( + com.google.cloud.redis.v1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportInstanceMethod(), responseObserver); } /** + * + * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request, + public void failoverInstance( + com.google.cloud.redis.v1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFailoverInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFailoverInstanceMethod(), responseObserver); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, + public void deleteInstance( + com.google.cloud.redis.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance( + com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRescheduleMaintenanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRescheduleMaintenanceMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ListInstancesRequest, - com.google.cloud.redis.v1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.ListInstancesRequest, + com.google.cloud.redis.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.GetInstanceRequest, - com.google.cloud.redis.v1.Instance>( - this, METHODID_GET_INSTANCE))) + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.GetInstanceRequest, + com.google.cloud.redis.v1.Instance>(this, METHODID_GET_INSTANCE))) .addMethod( - getGetInstanceAuthStringMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.GetInstanceAuthStringRequest, - com.google.cloud.redis.v1.InstanceAuthString>( - this, METHODID_GET_INSTANCE_AUTH_STRING))) + getGetInstanceAuthStringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.GetInstanceAuthStringRequest, + com.google.cloud.redis.v1.InstanceAuthString>( + this, METHODID_GET_INSTANCE_AUTH_STRING))) .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) .addMethod( - getUpgradeInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.UpgradeInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPGRADE_INSTANCE))) + getUpgradeInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.UpgradeInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE))) .addMethod( - getImportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ImportInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_INSTANCE))) + getImportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.ImportInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_INSTANCE))) .addMethod( - getExportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ExportInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_INSTANCE))) + getExportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.ExportInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_INSTANCE))) .addMethod( - getFailoverInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.FailoverInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_FAILOVER_INSTANCE))) + getFailoverInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.FailoverInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_FAILOVER_INSTANCE))) .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) .addMethod( - getRescheduleMaintenanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.RescheduleMaintenanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESCHEDULE_MAINTENANCE))) + getRescheduleMaintenanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.RescheduleMaintenanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESCHEDULE_MAINTENANCE))) .build(); } } /** + * + * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -672,18 +856,18 @@ public void rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanc
    * 
*/ public static final class CloudRedisStub extends io.grpc.stub.AbstractAsyncStub { - private CloudRedisStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudRedisStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisStub(channel, callOptions); } /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -693,37 +877,54 @@ protected CloudRedisStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listInstances( + com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, + public void getInstance( + com.google.cloud.redis.v1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getInstanceAuthString( + com.google.cloud.redis.v1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -736,13 +937,18 @@ public void getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStrin
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, + public void createInstance( + com.google.cloud.redis.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -750,25 +956,35 @@ public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest reque
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, + public void updateInstance( + com.google.cloud.redis.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request, + public void upgradeInstance( + com.google.cloud.redis.v1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -778,13 +994,18 @@ public void upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest req
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request, + public void importInstance( + com.google.cloud.redis.v1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getImportInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -792,50 +1013,70 @@ public void importInstance(com.google.cloud.redis.v1.ImportInstanceRequest reque
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request, + public void exportInstance( + com.google.cloud.redis.v1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getExportInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request, + public void failoverInstance( + com.google.cloud.redis.v1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, + public void deleteInstance( + com.google.cloud.redis.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance( + com.google.cloud.redis.v1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -851,9 +1092,9 @@ public void rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanc
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CloudRedisBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CloudRedisBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -864,6 +1105,8 @@ protected CloudRedisBlockingStub build( } /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -873,34 +1116,43 @@ protected CloudRedisBlockingStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.cloud.redis.v1.ListInstancesResponse listInstances(com.google.cloud.redis.v1.ListInstancesRequest request) { + public com.google.cloud.redis.v1.ListInstancesResponse listInstances( + com.google.cloud.redis.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.cloud.redis.v1.Instance getInstance(com.google.cloud.redis.v1.GetInstanceRequest request) { + public com.google.cloud.redis.v1.Instance getInstance( + com.google.cloud.redis.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { + public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString( + com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceAuthStringMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -913,12 +1165,15 @@ public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString(com.go
      * is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request) { + public com.google.longrunning.Operation createInstance( + com.google.cloud.redis.v1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -926,23 +1181,29 @@ public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request) { + public com.google.longrunning.Operation updateInstance( + com.google.cloud.redis.v1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.longrunning.Operation upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request) { + public com.google.longrunning.Operation upgradeInstance( + com.google.cloud.redis.v1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -952,12 +1213,15 @@ public com.google.longrunning.Operation upgradeInstance(com.google.cloud.redis.v
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request) { + public com.google.longrunning.Operation importInstance( + com.google.cloud.redis.v1.ImportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -965,46 +1229,58 @@ public com.google.longrunning.Operation importInstance(com.google.cloud.redis.v1
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request) { + public com.google.longrunning.Operation exportInstance( + com.google.cloud.redis.v1.ExportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.longrunning.Operation failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request) { + public com.google.longrunning.Operation failoverInstance( + com.google.cloud.redis.v1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request) { + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.redis.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.longrunning.Operation rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { + public com.google.longrunning.Operation rescheduleMaintenance( + com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } /** + * + * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1
@@ -1020,19 +1296,20 @@ public com.google.longrunning.Operation rescheduleMaintenance(com.google.cloud.r
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisFutureStub extends io.grpc.stub.AbstractFutureStub { - private CloudRedisFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CloudRedisFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisFutureStub(channel, callOptions); } /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -1042,37 +1319,45 @@ protected CloudRedisFutureStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.redis.v1.ListInstancesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.v1.ListInstancesResponse> + listInstances(com.google.cloud.redis.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.redis.v1.GetInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getInstance(com.google.cloud.redis.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getInstanceAuthString( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.v1.InstanceAuthString> + getInstanceAuthString(com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -1085,13 +1370,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createInstance(
-        com.google.cloud.redis.v1.CreateInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -1099,25 +1386,29 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateInstance(
-        com.google.cloud.redis.v1.UpdateInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture upgradeInstance( - com.google.cloud.redis.v1.UpgradeInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + upgradeInstance(com.google.cloud.redis.v1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -1127,13 +1418,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture importInstance(
-        com.google.cloud.redis.v1.ImportInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1141,44 +1434,50 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture exportInstance(
-        com.google.cloud.redis.v1.ExportInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture failoverInstance( - com.google.cloud.redis.v1.FailoverInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + failoverInstance(com.google.cloud.redis.v1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.redis.v1.DeleteInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture rescheduleMaintenance( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + rescheduleMaintenance(com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request); } @@ -1196,11 +1495,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + 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 CloudRedisImplBase serviceImpl; private final int methodId; @@ -1214,47 +1513,60 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.redis.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listInstances( + (com.google.cloud.redis.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.redis.v1.GetInstanceRequest) request, + serviceImpl.getInstance( + (com.google.cloud.redis.v1.GetInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTANCE_AUTH_STRING: - serviceImpl.getInstanceAuthString((com.google.cloud.redis.v1.GetInstanceAuthStringRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getInstanceAuthString( + (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.redis.v1.CreateInstanceRequest) request, + serviceImpl.createInstance( + (com.google.cloud.redis.v1.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.redis.v1.UpdateInstanceRequest) request, + serviceImpl.updateInstance( + (com.google.cloud.redis.v1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPGRADE_INSTANCE: - serviceImpl.upgradeInstance((com.google.cloud.redis.v1.UpgradeInstanceRequest) request, + serviceImpl.upgradeInstance( + (com.google.cloud.redis.v1.UpgradeInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_INSTANCE: - serviceImpl.importInstance((com.google.cloud.redis.v1.ImportInstanceRequest) request, + serviceImpl.importInstance( + (com.google.cloud.redis.v1.ImportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_INSTANCE: - serviceImpl.exportInstance((com.google.cloud.redis.v1.ExportInstanceRequest) request, + serviceImpl.exportInstance( + (com.google.cloud.redis.v1.ExportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FAILOVER_INSTANCE: - serviceImpl.failoverInstance((com.google.cloud.redis.v1.FailoverInstanceRequest) request, + serviceImpl.failoverInstance( + (com.google.cloud.redis.v1.FailoverInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.redis.v1.DeleteInstanceRequest) request, + serviceImpl.deleteInstance( + (com.google.cloud.redis.v1.DeleteInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESCHEDULE_MAINTENANCE: - serviceImpl.rescheduleMaintenance((com.google.cloud.redis.v1.RescheduleMaintenanceRequest) request, + serviceImpl.rescheduleMaintenance( + (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1273,8 +1585,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class CloudRedisBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class CloudRedisBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudRedisBaseDescriptorSupplier() {} @java.lang.Override @@ -1316,20 +1629,22 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CloudRedisGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getGetInstanceAuthStringMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpgradeInstanceMethod()) - .addMethod(getImportInstanceMethod()) - .addMethod(getExportInstanceMethod()) - .addMethod(getFailoverInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getRescheduleMaintenanceMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getGetInstanceAuthStringMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpgradeInstanceMethod()) + .addMethod(getImportInstanceMethod()) + .addMethod(getExportInstanceMethod()) + .addMethod(getFailoverInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getRescheduleMaintenanceMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java b/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java similarity index 52% rename from owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java rename to grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java index 96ce591c..7094b4b6 100644 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java +++ b/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.redis.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Configures and manages Cloud Memorystore for Redis instances
  * Google Cloud Memorystore for Redis v1beta1
@@ -29,392 +46,534 @@ private CloudRedisGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.redis.v1beta1.CloudRedis";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListInstancesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.ListInstancesRequest,
+          com.google.cloud.redis.v1beta1.ListInstancesResponse>
+      getListInstancesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListInstances",
       requestType = com.google.cloud.redis.v1beta1.ListInstancesRequest.class,
       responseType = com.google.cloud.redis.v1beta1.ListInstancesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListInstancesMethod() {
-    io.grpc.MethodDescriptor getListInstancesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.ListInstancesRequest,
+          com.google.cloud.redis.v1beta1.ListInstancesResponse>
+      getListInstancesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.ListInstancesRequest,
+            com.google.cloud.redis.v1beta1.ListInstancesResponse>
+        getListInstancesMethod;
     if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) {
-          CloudRedisGrpc.getListInstancesMethod = getListInstancesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.ListInstancesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.ListInstancesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
-              .build();
+          CloudRedisGrpc.getListInstancesMethod =
+              getListInstancesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.ListInstancesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.ListInstancesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances"))
+                      .build();
         }
       }
     }
     return getListInstancesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.GetInstanceRequest,
+          com.google.cloud.redis.v1beta1.Instance>
+      getGetInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstance",
       requestType = com.google.cloud.redis.v1beta1.GetInstanceRequest.class,
       responseType = com.google.cloud.redis.v1beta1.Instance.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetInstanceMethod() {
-    io.grpc.MethodDescriptor getGetInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.GetInstanceRequest,
+          com.google.cloud.redis.v1beta1.Instance>
+      getGetInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.GetInstanceRequest,
+            com.google.cloud.redis.v1beta1.Instance>
+        getGetInstanceMethod;
     if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) {
-          CloudRedisGrpc.getGetInstanceMethod = getGetInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.GetInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.Instance.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
-              .build();
+          CloudRedisGrpc.getGetInstanceMethod =
+              getGetInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.GetInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.Instance.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance"))
+                      .build();
         }
       }
     }
     return getGetInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest,
+          com.google.cloud.redis.v1beta1.InstanceAuthString>
+      getGetInstanceAuthStringMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetInstanceAuthString",
       requestType = com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class,
       responseType = com.google.cloud.redis.v1beta1.InstanceAuthString.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetInstanceAuthStringMethod() {
-    io.grpc.MethodDescriptor getGetInstanceAuthStringMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest,
+          com.google.cloud.redis.v1beta1.InstanceAuthString>
+      getGetInstanceAuthStringMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest,
+            com.google.cloud.redis.v1beta1.InstanceAuthString>
+        getGetInstanceAuthStringMethod;
     if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod) == null) {
-          CloudRedisGrpc.getGetInstanceAuthStringMethod = getGetInstanceAuthStringMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
-              .build();
+        if ((getGetInstanceAuthStringMethod = CloudRedisGrpc.getGetInstanceAuthStringMethod)
+            == null) {
+          CloudRedisGrpc.getGetInstanceAuthStringMethod =
+              getGetInstanceAuthStringMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "GetInstanceAuthString"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.InstanceAuthString
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("GetInstanceAuthString"))
+                      .build();
         }
       }
     }
     return getGetInstanceAuthStringMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.CreateInstanceRequest, com.google.longrunning.Operation>
+      getCreateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateInstance",
       requestType = com.google.cloud.redis.v1beta1.CreateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateInstanceMethod() {
-    io.grpc.MethodDescriptor getCreateInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.CreateInstanceRequest, com.google.longrunning.Operation>
+      getCreateInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.CreateInstanceRequest, com.google.longrunning.Operation>
+        getCreateInstanceMethod;
     if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) {
-          CloudRedisGrpc.getCreateInstanceMethod = getCreateInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.CreateInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
-              .build();
+          CloudRedisGrpc.getCreateInstanceMethod =
+              getCreateInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.CreateInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance"))
+                      .build();
         }
       }
     }
     return getCreateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.UpdateInstanceRequest, com.google.longrunning.Operation>
+      getUpdateInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateInstance",
       requestType = com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateInstanceMethod() {
-    io.grpc.MethodDescriptor getUpdateInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.UpdateInstanceRequest, com.google.longrunning.Operation>
+      getUpdateInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.UpdateInstanceRequest, com.google.longrunning.Operation>
+        getUpdateInstanceMethod;
     if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) {
-          CloudRedisGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.UpdateInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
-              .build();
+          CloudRedisGrpc.getUpdateInstanceMethod =
+              getUpdateInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.UpdateInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance"))
+                      .build();
         }
       }
     }
     return getUpdateInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpgradeInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, com.google.longrunning.Operation>
+      getUpgradeInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance",
       requestType = com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpgradeInstanceMethod() {
-    io.grpc.MethodDescriptor getUpgradeInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, com.google.longrunning.Operation>
+      getUpgradeInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, com.google.longrunning.Operation>
+        getUpgradeInstanceMethod;
     if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getUpgradeInstanceMethod = CloudRedisGrpc.getUpgradeInstanceMethod) == null) {
-          CloudRedisGrpc.getUpgradeInstanceMethod = getUpgradeInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
-              .build();
+          CloudRedisGrpc.getUpgradeInstanceMethod =
+              getUpgradeInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.UpgradeInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("UpgradeInstance"))
+                      .build();
         }
       }
     }
     return getUpgradeInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getImportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.ImportInstanceRequest, com.google.longrunning.Operation>
+      getImportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportInstance",
       requestType = com.google.cloud.redis.v1beta1.ImportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getImportInstanceMethod() {
-    io.grpc.MethodDescriptor getImportInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.ImportInstanceRequest, com.google.longrunning.Operation>
+      getImportInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.ImportInstanceRequest, com.google.longrunning.Operation>
+        getImportInstanceMethod;
     if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) {
-          CloudRedisGrpc.getImportInstanceMethod = getImportInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.ImportInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
-              .build();
+          CloudRedisGrpc.getImportInstanceMethod =
+              getImportInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.ImportInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance"))
+                      .build();
         }
       }
     }
     return getImportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getExportInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.ExportInstanceRequest, com.google.longrunning.Operation>
+      getExportInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ExportInstance",
       requestType = com.google.cloud.redis.v1beta1.ExportInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getExportInstanceMethod() {
-    io.grpc.MethodDescriptor getExportInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.ExportInstanceRequest, com.google.longrunning.Operation>
+      getExportInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.ExportInstanceRequest, com.google.longrunning.Operation>
+        getExportInstanceMethod;
     if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) {
-          CloudRedisGrpc.getExportInstanceMethod = getExportInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.ExportInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
-              .build();
+          CloudRedisGrpc.getExportInstanceMethod =
+              getExportInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.ExportInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance"))
+                      .build();
         }
       }
     }
     return getExportInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getFailoverInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.FailoverInstanceRequest, com.google.longrunning.Operation>
+      getFailoverInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "FailoverInstance",
       requestType = com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getFailoverInstanceMethod() {
-    io.grpc.MethodDescriptor getFailoverInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.FailoverInstanceRequest, com.google.longrunning.Operation>
+      getFailoverInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.FailoverInstanceRequest,
+            com.google.longrunning.Operation>
+        getFailoverInstanceMethod;
     if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getFailoverInstanceMethod = CloudRedisGrpc.getFailoverInstanceMethod) == null) {
-          CloudRedisGrpc.getFailoverInstanceMethod = getFailoverInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
-              .build();
+          CloudRedisGrpc.getFailoverInstanceMethod =
+              getFailoverInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FailoverInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.FailoverInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("FailoverInstance"))
+                      .build();
         }
       }
     }
     return getFailoverInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.DeleteInstanceRequest, com.google.longrunning.Operation>
+      getDeleteInstanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteInstance",
       requestType = com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteInstanceMethod() {
-    io.grpc.MethodDescriptor getDeleteInstanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.DeleteInstanceRequest, com.google.longrunning.Operation>
+      getDeleteInstanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.DeleteInstanceRequest, com.google.longrunning.Operation>
+        getDeleteInstanceMethod;
     if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
         if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) {
-          CloudRedisGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.DeleteInstanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
-              .build();
+          CloudRedisGrpc.getDeleteInstanceMethod =
+              getDeleteInstanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.DeleteInstanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance"))
+                      .build();
         }
       }
     }
     return getDeleteInstanceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest,
+          com.google.longrunning.Operation>
+      getRescheduleMaintenanceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RescheduleMaintenance",
       requestType = com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRescheduleMaintenanceMethod() {
-    io.grpc.MethodDescriptor getRescheduleMaintenanceMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest,
+          com.google.longrunning.Operation>
+      getRescheduleMaintenanceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest,
+            com.google.longrunning.Operation>
+        getRescheduleMaintenanceMethod;
     if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
       synchronized (CloudRedisGrpc.class) {
-        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod) == null) {
-          CloudRedisGrpc.getRescheduleMaintenanceMethod = getRescheduleMaintenanceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
-              .build();
+        if ((getRescheduleMaintenanceMethod = CloudRedisGrpc.getRescheduleMaintenanceMethod)
+            == null) {
+          CloudRedisGrpc.getRescheduleMaintenanceMethod =
+              getRescheduleMaintenanceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new CloudRedisMethodDescriptorSupplier("RescheduleMaintenance"))
+                      .build();
         }
       }
     }
     return getRescheduleMaintenanceMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static CloudRedisStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new CloudRedisStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public CloudRedisStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new CloudRedisStub(channel, callOptions);
+          }
+        };
     return CloudRedisStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static CloudRedisBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static CloudRedisBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public CloudRedisBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new CloudRedisBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public CloudRedisBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new CloudRedisBlockingStub(channel, callOptions);
+          }
+        };
     return CloudRedisBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static CloudRedisFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static CloudRedisFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public CloudRedisFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new CloudRedisFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public CloudRedisFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new CloudRedisFutureStub(channel, callOptions);
+          }
+        };
     return CloudRedisFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -430,9 +589,11 @@ public CloudRedisFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static abstract class CloudRedisImplBase implements io.grpc.BindableService { + public abstract static class CloudRedisImplBase implements io.grpc.BindableService { /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -442,34 +603,48 @@ public static abstract class CloudRedisImplBase implements io.grpc.BindableServi
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + public void listInstances( + com.google.cloud.redis.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request, + public void getInstance( + com.google.cloud.redis.v1beta1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceAuthStringMethod(), responseObserver); + public void getInstanceAuthString( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceAuthStringMethod(), responseObserver); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -482,12 +657,16 @@ public void getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuth
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request, + public void createInstance( + com.google.cloud.redis.v1beta1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); } /** + * + * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -495,23 +674,31 @@ public void createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, + public void updateInstance( + com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); } /** + * + * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, + public void upgradeInstance( + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeInstanceMethod(), responseObserver); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -521,12 +708,16 @@ public void upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceReques
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request, + public void importInstance( + com.google.cloud.redis.v1beta1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportInstanceMethod(), responseObserver); } /** + * + * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -534,128 +725,136 @@ public void importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request, + public void exportInstance( + com.google.cloud.redis.v1beta1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportInstanceMethod(), responseObserver); } /** + * + * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, + public void failoverInstance( + com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFailoverInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFailoverInstanceMethod(), responseObserver); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, + public void deleteInstance( + com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRescheduleMaintenanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRescheduleMaintenanceMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.ListInstancesRequest, - com.google.cloud.redis.v1beta1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.ListInstancesRequest, + com.google.cloud.redis.v1beta1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.GetInstanceRequest, - com.google.cloud.redis.v1beta1.Instance>( - this, METHODID_GET_INSTANCE))) + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.GetInstanceRequest, + com.google.cloud.redis.v1beta1.Instance>(this, METHODID_GET_INSTANCE))) .addMethod( - getGetInstanceAuthStringMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest, - com.google.cloud.redis.v1beta1.InstanceAuthString>( - this, METHODID_GET_INSTANCE_AUTH_STRING))) + getGetInstanceAuthStringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest, + com.google.cloud.redis.v1beta1.InstanceAuthString>( + this, METHODID_GET_INSTANCE_AUTH_STRING))) .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) .addMethod( - getUpgradeInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPGRADE_INSTANCE))) + getUpgradeInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE))) .addMethod( - getImportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.ImportInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_INSTANCE))) + getImportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.ImportInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_INSTANCE))) .addMethod( - getExportInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.ExportInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_INSTANCE))) + getExportInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.ExportInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_INSTANCE))) .addMethod( - getFailoverInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.FailoverInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_FAILOVER_INSTANCE))) + getFailoverInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.FailoverInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_FAILOVER_INSTANCE))) .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) .addMethod( - getRescheduleMaintenanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESCHEDULE_MAINTENANCE))) + getRescheduleMaintenanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESCHEDULE_MAINTENANCE))) .build(); } } /** + * + * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -672,18 +871,18 @@ public void rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaint
    * 
*/ public static final class CloudRedisStub extends io.grpc.stub.AbstractAsyncStub { - private CloudRedisStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudRedisStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisStub(channel, callOptions); } /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -693,37 +892,54 @@ protected CloudRedisStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public void listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listInstances( + com.google.cloud.redis.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public void getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request, + public void getInstance( + com.google.cloud.redis.v1beta1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public void getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getInstanceAuthString( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -736,13 +952,18 @@ public void getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuth
      * is no need to call DeleteOperation.
      * 
*/ - public void createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request, + public void createInstance( + com.google.cloud.redis.v1beta1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -750,25 +971,35 @@ public void createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public void updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, + public void updateInstance( + com.google.cloud.redis.v1beta1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public void upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, + public void upgradeInstance( + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -778,13 +1009,18 @@ public void upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceReques
      * there is no need to call DeleteOperation.
      * 
*/ - public void importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request, + public void importInstance( + com.google.cloud.redis.v1beta1.ImportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getImportInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -792,50 +1028,70 @@ public void importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest
      * there is no need to call DeleteOperation.
      * 
*/ - public void exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request, + public void exportInstance( + com.google.cloud.redis.v1beta1.ExportInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getExportInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public void failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, + public void failoverInstance( + com.google.cloud.redis.v1beta1.FailoverInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public void deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, + public void deleteInstance( + com.google.cloud.redis.v1beta1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public void rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, + public void rescheduleMaintenance( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -851,9 +1107,9 @@ public void rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaint
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CloudRedisBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CloudRedisBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -864,6 +1120,8 @@ protected CloudRedisBlockingStub build( } /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -873,34 +1131,43 @@ protected CloudRedisBlockingStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.cloud.redis.v1beta1.ListInstancesResponse listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request) { + public com.google.cloud.redis.v1beta1.ListInstancesResponse listInstances( + com.google.cloud.redis.v1beta1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.cloud.redis.v1beta1.Instance getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request) { + public com.google.cloud.redis.v1beta1.Instance getInstance( + com.google.cloud.redis.v1beta1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { + public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceAuthStringMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -913,12 +1180,15 @@ public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString(c
      * is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request) { + public com.google.longrunning.Operation createInstance( + com.google.cloud.redis.v1beta1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -926,23 +1196,29 @@ public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1
      * after a few hours, so there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) { + public com.google.longrunning.Operation updateInstance( + com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.longrunning.Operation upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { + public com.google.longrunning.Operation upgradeInstance( + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -952,12 +1228,15 @@ public com.google.longrunning.Operation upgradeInstance(com.google.cloud.redis.v
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request) { + public com.google.longrunning.Operation importInstance( + com.google.cloud.redis.v1beta1.ImportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -965,46 +1244,58 @@ public com.google.longrunning.Operation importInstance(com.google.cloud.redis.v1
      * there is no need to call DeleteOperation.
      * 
*/ - public com.google.longrunning.Operation exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request) { + public com.google.longrunning.Operation exportInstance( + com.google.cloud.redis.v1beta1.ExportInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.longrunning.Operation failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { + public com.google.longrunning.Operation failoverInstance( + com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.longrunning.Operation rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { + public com.google.longrunning.Operation rescheduleMaintenance( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } /** + * + * *
    * Configures and manages Cloud Memorystore for Redis instances
    * Google Cloud Memorystore for Redis v1beta1
@@ -1020,19 +1311,20 @@ public com.google.longrunning.Operation rescheduleMaintenance(com.google.cloud.r
    * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
    * 
*/ - public static final class CloudRedisFutureStub extends io.grpc.stub.AbstractFutureStub { - private CloudRedisFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudRedisFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CloudRedisFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudRedisFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudRedisFutureStub(channel, callOptions); } /** + * + * *
      * Lists all Redis instances owned by a project in either the specified
      * location (region) or all locations.
@@ -1042,37 +1334,46 @@ protected CloudRedisFutureStub build(
      * available to the project are queried, and the results are aggregated.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.redis.v1beta1.ListInstancesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.v1beta1.ListInstancesResponse> + listInstances(com.google.cloud.redis.v1beta1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the details of a specific Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.redis.v1beta1.GetInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.v1beta1.Instance> + getInstance(com.google.cloud.redis.v1beta1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
      * instance the response will be empty. This information is not included in
      * the details returned to GetInstance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getInstanceAuthString( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.v1beta1.InstanceAuthString> + getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a Redis instance based on the specified tier and memory size.
      * By default, the instance is accessible from the project's
@@ -1085,13 +1386,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createInstance(
-        com.google.cloud.redis.v1beta1.CreateInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        createInstance(com.google.cloud.redis.v1beta1.CreateInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Updates the metadata and configuration of a specific Redis instance.
      * Completed longrunning.Operation will contain the new instance object
@@ -1099,25 +1402,29 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateInstance(
-        com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateInstance(com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Upgrades Redis instance to the newer Redis version specified in the
      * request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture upgradeInstance( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + upgradeInstance(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
      * Redis may stop serving during this operation. Instance state will be
@@ -1127,13 +1434,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture importInstance(
-        com.google.cloud.redis.v1beta1.ImportInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        importInstance(com.google.cloud.redis.v1beta1.ImportInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getImportInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Export Redis instance data into a Redis RDB format file in Cloud Storage.
      * Redis will continue serving during this operation.
@@ -1141,44 +1450,50 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture exportInstance(
-        com.google.cloud.redis.v1beta1.ExportInstanceRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        exportInstance(com.google.cloud.redis.v1beta1.ExportInstanceRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getExportInstanceMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Initiates a failover of the primary node to current replica node for a
      * specific STANDARD tier Cloud Memorystore for Redis instance.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture failoverInstance( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + failoverInstance(com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFailoverInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes a specific Redis instance.  Instance stops serving and data is
      * deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } /** + * + * *
      * Reschedule maintenance for a given instance in a given project and
      * location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture rescheduleMaintenance( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture + rescheduleMaintenance(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request); } @@ -1196,11 +1511,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + 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 CloudRedisImplBase serviceImpl; private final int methodId; @@ -1214,47 +1529,61 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.redis.v1beta1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listInstances( + (com.google.cloud.redis.v1beta1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.redis.v1beta1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getInstance( + (com.google.cloud.redis.v1beta1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_INSTANCE_AUTH_STRING: - serviceImpl.getInstanceAuthString((com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getInstanceAuthString( + (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.redis.v1beta1.CreateInstanceRequest) request, + serviceImpl.createInstance( + (com.google.cloud.redis.v1beta1.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.redis.v1beta1.UpdateInstanceRequest) request, + serviceImpl.updateInstance( + (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPGRADE_INSTANCE: - serviceImpl.upgradeInstance((com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) request, + serviceImpl.upgradeInstance( + (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_INSTANCE: - serviceImpl.importInstance((com.google.cloud.redis.v1beta1.ImportInstanceRequest) request, + serviceImpl.importInstance( + (com.google.cloud.redis.v1beta1.ImportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_INSTANCE: - serviceImpl.exportInstance((com.google.cloud.redis.v1beta1.ExportInstanceRequest) request, + serviceImpl.exportInstance( + (com.google.cloud.redis.v1beta1.ExportInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FAILOVER_INSTANCE: - serviceImpl.failoverInstance((com.google.cloud.redis.v1beta1.FailoverInstanceRequest) request, + serviceImpl.failoverInstance( + (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.redis.v1beta1.DeleteInstanceRequest) request, + serviceImpl.deleteInstance( + (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESCHEDULE_MAINTENANCE: - serviceImpl.rescheduleMaintenance((com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) request, + serviceImpl.rescheduleMaintenance( + (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1273,8 +1602,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class CloudRedisBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class CloudRedisBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudRedisBaseDescriptorSupplier() {} @java.lang.Override @@ -1316,20 +1646,22 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CloudRedisGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getGetInstanceAuthStringMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpgradeInstanceMethod()) - .addMethod(getImportInstanceMethod()) - .addMethod(getExportInstanceMethod()) - .addMethod(getFailoverInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getRescheduleMaintenanceMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getGetInstanceAuthStringMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpgradeInstanceMethod()) + .addMethod(getImportInstanceMethod()) + .addMethod(getExportInstanceMethod()) + .addMethod(getFailoverInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getRescheduleMaintenanceMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java deleted file mode 100644 index e311004c..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public final class CloudRedisServiceV1Proto { - private CloudRedisServiceV1Proto() {} - 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_redis_v1_NodeInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_LocationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_TlsCertificate_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/redis/v1/cloud_redis.prot" + - "o\022\025google.cloud.redis.v1\032\034google/api/ann" + - "otations.proto\032\027google/api/client.proto\032" + - "\037google/api/field_behavior.proto\032\031google" + - "/api/resource.proto\032#google/longrunning/" + - "operations.proto\032\036google/protobuf/durati" + - "on.proto\032 google/protobuf/field_mask.pro" + - "to\032\037google/protobuf/timestamp.proto\032\033goo" + - "gle/type/dayofweek.proto\032\033google/type/ti" + - "meofday.proto\".\n\010NodeInfo\022\017\n\002id\030\001 \001(\tB\003\340" + - "A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\236\020\n\010Instance\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022;\n\006l" + - "abels\030\003 \003(\0132+.google.cloud.redis.v1.Inst" + - "ance.LabelsEntry\022\030\n\013location_id\030\004 \001(\tB\003\340" + - "A\001\022$\n\027alternative_location_id\030\005 \001(\tB\003\340A\001" + - "\022\032\n\rredis_version\030\007 \001(\tB\003\340A\001\022\036\n\021reserved" + - "_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022secondary_ip_ran" + - "ge\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001(\tB\003\340A\003\022\021\n\004port" + - "\030\013 \001(\005B\003\340A\003\022 \n\023current_location_id\030\014 \001(\t" + - "B\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\0229\n\005state\030\016 \001(\0162%.goo" + - "gle.cloud.redis.v1.Instance.StateB\003\340A\003\022\033" + - "\n\016status_message\030\017 \001(\tB\003\340A\003\022M\n\rredis_con" + - "figs\030\020 \003(\01321.google.cloud.redis.v1.Insta" + - "nce.RedisConfigsEntryB\003\340A\001\0227\n\004tier\030\021 \001(\016" + - "2$.google.cloud.redis.v1.Instance.TierB\003" + - "\340A\002\022\033\n\016memory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022auth" + - "orized_network\030\024 \001(\tB\003\340A\001\022%\n\030persistence" + - "_iam_identity\030\025 \001(\tB\003\340A\003\022F\n\014connect_mode" + - "\030\026 \001(\0162+.google.cloud.redis.v1.Instance." + - "ConnectModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003" + - "\340A\001\022C\n\017server_ca_certs\030\031 \003(\0132%.google.cl" + - "oud.redis.v1.TlsCertificateB\003\340A\003\022[\n\027tran" + - "sit_encryption_mode\030\032 \001(\01625.google.cloud" + - ".redis.v1.Instance.TransitEncryptionMode" + - "B\003\340A\001\022I\n\022maintenance_policy\030\033 \001(\0132(.goog" + - "le.cloud.redis.v1.MaintenancePolicyB\003\340A\001" + - "\022M\n\024maintenance_schedule\030\034 \001(\0132*.google." + - "cloud.redis.v1.MaintenanceScheduleB\003\340A\003\022" + - "\032\n\rreplica_count\030\037 \001(\005B\003\340A\001\0223\n\005nodes\030 \003" + - "(\0132\037.google.cloud.redis.v1.NodeInfoB\003\340A\003" + - "\022\032\n\rread_endpoint\030! \001(\tB\003\340A\003\022\037\n\022read_end" + - "point_port\030\" \001(\005B\003\340A\003\022Q\n\022read_replicas_m" + - "ode\030# \001(\01620.google.cloud.redis.v1.Instan" + - "ce.ReadReplicasModeB\003\340A\001\032-\n\013LabelsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021Redis" + - "ConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\"\224\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n" + - "\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010" + - "DELETING\020\004\022\r\n\tREPAIRING\020\005\022\017\n\013MAINTENANCE" + - "\020\006\022\r\n\tIMPORTING\020\010\022\020\n\014FAILING_OVER\020\t\"8\n\004T" + - "ier\022\024\n\020TIER_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013" + - "STANDARD_HA\020\003\"[\n\013ConnectMode\022\034\n\030CONNECT_" + - "MODE_UNSPECIFIED\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032" + - "\n\026PRIVATE_SERVICE_ACCESS\020\002\"i\n\025TransitEnc" + - "ryptionMode\022\'\n#TRANSIT_ENCRYPTION_MODE_U" + - "NSPECIFIED\020\000\022\031\n\025SERVER_AUTHENTICATION\020\001\022" + - "\014\n\010DISABLED\020\002\"m\n\020ReadReplicasMode\022\"\n\036REA" + - "D_REPLICAS_MODE_UNSPECIFIED\020\000\022\032\n\026READ_RE" + - "PLICAS_DISABLED\020\001\022\031\n\025READ_REPLICAS_ENABL" + - "ED\020\002:`\352A]\n\035redis.googleapis.com/Instance" + - "\022\202\323\344\223\002/\022-/v1/{parent=projects/*/loca" + - "tions/*}/instances\332A\006parent\022\227\001\n\013GetInsta" + - "nce\022).google.cloud.redis.v1.GetInstanceR" + - "equest\032\037.google.cloud.redis.v1.Instance\"" + - "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/" + - "*/instances/*}\332A\004name\022\300\001\n\025GetInstanceAut" + - "hString\0223.google.cloud.redis.v1.GetInsta" + - "nceAuthStringRequest\032).google.cloud.redi" + - "s.v1.InstanceAuthString\"G\202\323\344\223\002:\0228/v1/{na" + - "me=projects/*/locations/*/instances/*}/a" + - "uthString\332A\004name\022\211\002\n\016CreateInstance\022,.go" + - "ogle.cloud.redis.v1.CreateInstanceReques" + - "t\032\035.google.longrunning.Operation\"\251\001\202\323\344\223\002" + - "9\"-/v1/{parent=projects/*/locations/*}/i" + - "nstances:\010instance\332A\033parent,instance_id," + - "instance\312AI\n\036google.cloud.redis.v1.Insta" + - "nce\022\'google.cloud.redis.v1.OperationMeta" + - "data\022\213\002\n\016UpdateInstance\022,.google.cloud.r" + - "edis.v1.UpdateInstanceRequest\032\035.google.l" + - "ongrunning.Operation\"\253\001\202\323\344\223\002B26/v1/{inst" + - "ance.name=projects/*/locations/*/instanc" + - "es/*}:\010instance\332A\024update_mask,instance\312A" + - "I\n\036google.cloud.redis.v1.Instance\022\'googl" + - "e.cloud.redis.v1.OperationMetadata\022\203\002\n\017U" + - "pgradeInstance\022-.google.cloud.redis.v1.U" + - "pgradeInstanceRequest\032\035.google.longrunni" + - "ng.Operation\"\241\001\202\323\344\223\002:\"5/v1/{name=project" + - "s/*/locations/*/instances/*}:upgrade:\001*\332" + - "A\022name,redis_version\312AI\n\036google.cloud.re" + - "dis.v1.Instance\022\'google.cloud.redis.v1.O" + - "perationMetadata\022\377\001\n\016ImportInstance\022,.go" + - "ogle.cloud.redis.v1.ImportInstanceReques" + - "t\032\035.google.longrunning.Operation\"\237\001\202\323\344\223\002" + - "9\"4/v1/{name=projects/*/locations/*/inst" + - "ances/*}:import:\001*\332A\021name,input_config\312A" + - "I\n\036google.cloud.redis.v1.Instance\022\'googl" + - "e.cloud.redis.v1.OperationMetadata\022\200\002\n\016E" + - "xportInstance\022,.google.cloud.redis.v1.Ex" + - "portInstanceRequest\032\035.google.longrunning" + - ".Operation\"\240\001\202\323\344\223\0029\"4/v1/{name=projects/" + - "*/locations/*/instances/*}:export:\001*\332A\022n" + - "ame,output_config\312AI\n\036google.cloud.redis" + - ".v1.Instance\022\'google.cloud.redis.v1.Oper" + - "ationMetadata\022\215\002\n\020FailoverInstance\022..goo" + - "gle.cloud.redis.v1.FailoverInstanceReque" + - "st\032\035.google.longrunning.Operation\"\251\001\202\323\344\223" + - "\002;\"6/v1/{name=projects/*/locations/*/ins" + - "tances/*}:failover:\001*\332A\031name,data_protec" + - "tion_mode\312AI\n\036google.cloud.redis.v1.Inst" + - "ance\022\'google.cloud.redis.v1.OperationMet" + - "adata\022\336\001\n\016DeleteInstance\022,.google.cloud." + - "redis.v1.DeleteInstanceRequest\032\035.google." + - "longrunning.Operation\"\177\202\323\344\223\002/*-/v1/{name" + - "=projects/*/locations/*/instances/*}\332A\004n" + - "ame\312A@\n\025google.protobuf.Empty\022\'google.cl" + - "oud.redis.v1.OperationMetadata\022\257\002\n\025Resch" + - "eduleMaintenance\0223.google.cloud.redis.v1" + - ".RescheduleMaintenanceRequest\032\035.google.l" + - "ongrunning.Operation\"\301\001\202\323\344\223\002H\"C/v1/{name" + - "=projects/*/locations/*/instances/*}:res" + - "cheduleMaintenance:\001*\332A$name, reschedule" + - "_type, schedule_time\312AI\n\036google.cloud.re" + - "dis.v1.Instance\022\'google.cloud.redis.v1.O" + - "perationMetadata\032H\312A\024redis.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformBs\n\031com.google.cloud.redis.v1B" + - "\030CloudRedisServiceV1ProtoP\001Z:google.gola" + - "ng.org/genproto/googleapis/cloud/redis/v" + - "1;redisb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DayOfWeekProto.getDescriptor(), - com.google.type.TimeOfDayProto.getDescriptor(), - }); - internal_static_google_cloud_redis_v1_NodeInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_NodeInfo_descriptor, - new java.lang.String[] { "Id", "Zone", }); - internal_static_google_cloud_redis_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_Instance_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Labels", "LocationId", "AlternativeLocationId", "RedisVersion", "ReservedIpRange", "SecondaryIpRange", "Host", "Port", "CurrentLocationId", "CreateTime", "State", "StatusMessage", "RedisConfigs", "Tier", "MemorySizeGb", "AuthorizedNetwork", "PersistenceIamIdentity", "ConnectMode", "AuthEnabled", "ServerCaCerts", "TransitEncryptionMode", "MaintenancePolicy", "MaintenanceSchedule", "ReplicaCount", "Nodes", "ReadEndpoint", "ReadEndpointPort", "ReadReplicasMode", }); - internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor = - internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor, - new java.lang.String[] { "Name", "RescheduleType", "ScheduleTime", }); - internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor, - new java.lang.String[] { "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow", }); - internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor, - new java.lang.String[] { "Day", "StartTime", "Duration", }); - internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime", }); - internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor, - new java.lang.String[] { "AuthString", }); - internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Instance", }); - internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Instance", }); - internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor, - new java.lang.String[] { "Name", "RedisVersion", }); - internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_v1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_GcsSource_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_redis_v1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_InputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor, - new java.lang.String[] { "Name", "InputConfig", }); - internal_static_google_cloud_redis_v1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_redis_v1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor, - new java.lang.String[] { "Name", "OutputConfig", }); - internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor, - new java.lang.String[] { "Name", "DataProtectionMode", }); - internal_static_google_cloud_redis_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - internal_static_google_cloud_redis_v1_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_LocationMetadata_descriptor, - new java.lang.String[] { "AvailableZones", }); - internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor = - internal_static_google_cloud_redis_v1_LocationMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_redis_v1_TlsCertificate_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_TlsCertificate_descriptor, - new java.lang.String[] { "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DayOfWeekProto.getDescriptor(); - com.google.type.TimeOfDayProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index 7106a1be..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface DeleteInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java deleted file mode 100644 index 218bbfca..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface GetInstanceAuthStringRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceAuthStringRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 163f76f6..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java deleted file mode 100644 index 60a131b1..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface InstanceAuthStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.InstanceAuthString) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * @return The authString. - */ - java.lang.String getAuthString(); - /** - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * @return The bytes for authString. - */ - com.google.protobuf.ByteString - getAuthStringBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java deleted file mode 100644 index 826f3203..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface ZoneMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ZoneMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java deleted file mode 100644 index c03e0dcc..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java +++ /dev/null @@ -1,615 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public final class CloudRedisServiceBetaProto { - private CloudRedisServiceBetaProto() {} - 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_redis_v1beta1_NodeInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1beta1_TlsCertificate_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/redis/v1beta1/cloud_redis" + - ".proto\022\032google.cloud.redis.v1beta1\032\034goog" + - "le/api/annotations.proto\032\027google/api/cli" + - "ent.proto\032\037google/api/field_behavior.pro" + - "to\032\031google/api/resource.proto\032#google/lo" + - "ngrunning/operations.proto\032\036google/proto" + - "buf/duration.proto\032 google/protobuf/fiel" + - "d_mask.proto\032\037google/protobuf/timestamp." + - "proto\032\033google/type/dayofweek.proto\032\033goog" + - "le/type/timeofday.proto\".\n\010NodeInfo\022\017\n\002i" + - "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\245\021\n\010Inst" + - "ance\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030" + - "\002 \001(\t\022@\n\006labels\030\003 \003(\01320.google.cloud.red" + - "is.v1beta1.Instance.LabelsEntry\022\030\n\013locat" + - "ion_id\030\004 \001(\tB\003\340A\001\022$\n\027alternative_locatio" + - "n_id\030\005 \001(\tB\003\340A\001\022\032\n\rredis_version\030\007 \001(\tB\003" + - "\340A\001\022\036\n\021reserved_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022s" + - "econdary_ip_range\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001" + - "(\tB\003\340A\003\022\021\n\004port\030\013 \001(\005B\003\340A\003\022 \n\023current_lo" + - "cation_id\030\014 \001(\tB\003\340A\003\0224\n\013create_time\030\r \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n\005st" + - "ate\030\016 \001(\0162*.google.cloud.redis.v1beta1.I" + - "nstance.StateB\003\340A\003\022\033\n\016status_message\030\017 \001" + - "(\tB\003\340A\003\022R\n\rredis_configs\030\020 \003(\01326.google." + - "cloud.redis.v1beta1.Instance.RedisConfig" + - "sEntryB\003\340A\001\022<\n\004tier\030\021 \001(\0162).google.cloud" + - ".redis.v1beta1.Instance.TierB\003\340A\002\022\033\n\016mem" + - "ory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022authorized_net" + - "work\030\024 \001(\tB\003\340A\001\022%\n\030persistence_iam_ident" + - "ity\030\025 \001(\tB\003\340A\003\022K\n\014connect_mode\030\026 \001(\01620.g" + - "oogle.cloud.redis.v1beta1.Instance.Conne" + - "ctModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003\340A\001\022H" + - "\n\017server_ca_certs\030\031 \003(\0132*.google.cloud.r" + - "edis.v1beta1.TlsCertificateB\003\340A\003\022`\n\027tran" + - "sit_encryption_mode\030\032 \001(\0162:.google.cloud" + - ".redis.v1beta1.Instance.TransitEncryptio" + - "nModeB\003\340A\001\022N\n\022maintenance_policy\030\033 \001(\0132-" + - ".google.cloud.redis.v1beta1.MaintenanceP" + - "olicyB\003\340A\001\022R\n\024maintenance_schedule\030\034 \001(\013" + - "2/.google.cloud.redis.v1beta1.Maintenanc" + - "eScheduleB\003\340A\003\022\032\n\rreplica_count\030\037 \001(\005B\003\340" + - "A\001\0228\n\005nodes\030 \003(\0132$.google.cloud.redis.v" + - "1beta1.NodeInfoB\003\340A\003\022\032\n\rread_endpoint\030! " + - "\001(\tB\003\340A\003\022\037\n\022read_endpoint_port\030\" \001(\005B\003\340A" + - "\003\022V\n\022read_replicas_mode\030# \001(\01625.google.c" + - "loud.redis.v1beta1.Instance.ReadReplicas" + - "ModeB\003\340A\001\022N\n\022persistence_config\030% \001(\0132-." + - "google.cloud.redis.v1beta1.PersistenceCo" + - "nfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\0323\n\021RedisConfigsEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\005State\022" + - "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005" + - "READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tR" + - "EPAIRING\020\005\022\017\n\013MAINTENANCE\020\006\022\r\n\tIMPORTING" + - "\020\010\022\020\n\014FAILING_OVER\020\n\"8\n\004Tier\022\024\n\020TIER_UNS" + - "PECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013STANDARD_HA\020\003\"[" + - "\n\013ConnectMode\022\034\n\030CONNECT_MODE_UNSPECIFIE" + - "D\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032\n\026PRIVATE_SERVI" + - "CE_ACCESS\020\002\"i\n\025TransitEncryptionMode\022\'\n#" + - "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022\031\n" + - "\025SERVER_AUTHENTICATION\020\001\022\014\n\010DISABLED\020\002\"m" + - "\n\020ReadReplicasMode\022\"\n\036READ_REPLICAS_MODE" + - "_UNSPECIFIED\020\000\022\032\n\026READ_REPLICAS_DISABLED" + - "\020\001\022\031\n\025READ_REPLICAS_ENABLED\020\002:`\352A]\n\035redi" + - "s.googleapis.com/Instance\022\"2/v1beta1/{parent=pr" + - "ojects/*/locations/*}/instances:\010instanc" + - "e\332A\033parent,instance_id,instance\312A:\n#goog" + - "le.cloud.redis.v1beta1.Instance\022\023google." + - "protobuf.Any\022\206\002\n\016UpdateInstance\0221.google" + - ".cloud.redis.v1beta1.UpdateInstanceReque" + - "st\032\035.google.longrunning.Operation\"\241\001\202\323\344\223" + - "\002G2;/v1beta1/{instance.name=projects/*/l" + - "ocations/*/instances/*}:\010instance\332A\024upda" + - "te_mask,instance\312A:\n#google.cloud.redis." + - "v1beta1.Instance\022\023google.protobuf.Any\022\376\001" + - "\n\017UpgradeInstance\0222.google.cloud.redis.v" + - "1beta1.UpgradeInstanceRequest\032\035.google.l" + - "ongrunning.Operation\"\227\001\202\323\344\223\002?\":/v1beta1/" + - "{name=projects/*/locations/*/instances/*" + - "}:upgrade:\001*\332A\022name,redis_version\312A:\n#go" + - "ogle.cloud.redis.v1beta1.Instance\022\023googl" + - "e.protobuf.Any\022\372\001\n\016ImportInstance\0221.goog" + - "le.cloud.redis.v1beta1.ImportInstanceReq" + - "uest\032\035.google.longrunning.Operation\"\225\001\202\323" + - "\344\223\002>\"9/v1beta1/{name=projects/*/location" + - "s/*/instances/*}:import:\001*\332A\021name,input_" + - "config\312A:\n#google.cloud.redis.v1beta1.In" + - "stance\022\023google.protobuf.Any\022\373\001\n\016ExportIn" + - "stance\0221.google.cloud.redis.v1beta1.Expo" + - "rtInstanceRequest\032\035.google.longrunning.O" + - "peration\"\226\001\202\323\344\223\002>\"9/v1beta1/{name=projec" + - "ts/*/locations/*/instances/*}:export:\001*\332" + - "A\022name,output_config\312A:\n#google.cloud.re" + - "dis.v1beta1.Instance\022\023google.protobuf.An" + - "y\022\210\002\n\020FailoverInstance\0223.google.cloud.re" + - "dis.v1beta1.FailoverInstanceRequest\032\035.go" + - "ogle.longrunning.Operation\"\237\001\202\323\344\223\002@\";/v1" + - "beta1/{name=projects/*/locations/*/insta" + - "nces/*}:failover:\001*\332A\031name,data_protecti" + - "on_mode\312A:\n#google.cloud.redis.v1beta1.I" + - "nstance\022\023google.protobuf.Any\022\324\001\n\016DeleteI" + - "nstance\0221.google.cloud.redis.v1beta1.Del" + - "eteInstanceRequest\032\035.google.longrunning." + - "Operation\"p\202\323\344\223\0024*2/v1beta1/{name=projec" + - "ts/*/locations/*/instances/*}\332A\004name\312A,\n" + - "\025google.protobuf.Empty\022\023google.protobuf." + - "Any\022\252\002\n\025RescheduleMaintenance\0228.google.c" + - "loud.redis.v1beta1.RescheduleMaintenance" + - "Request\032\035.google.longrunning.Operation\"\267" + - "\001\202\323\344\223\002M\"H/v1beta1/{name=projects/*/locat" + - "ions/*/instances/*}:rescheduleMaintenanc" + - "e:\001*\332A$name, reschedule_type, schedule_t" + - "ime\312A:\n#google.cloud.redis.v1beta1.Insta" + - "nce\022\023google.protobuf.Any\032H\312A\024redis.googl" + - "eapis.com\322A.https://www.googleapis.com/a" + - "uth/cloud-platformB\177\n\036com.google.cloud.r" + - "edis.v1beta1B\032CloudRedisServiceBetaProto" + - "P\001Z?google.golang.org/genproto/googleapi" + - "s/cloud/redis/v1beta1;redisb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DayOfWeekProto.getDescriptor(), - com.google.type.TimeOfDayProto.getDescriptor(), - }); - internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor, - new java.lang.String[] { "Id", "Zone", }); - internal_static_google_cloud_redis_v1beta1_Instance_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_Instance_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Labels", "LocationId", "AlternativeLocationId", "RedisVersion", "ReservedIpRange", "SecondaryIpRange", "Host", "Port", "CurrentLocationId", "CreateTime", "State", "StatusMessage", "RedisConfigs", "Tier", "MemorySizeGb", "AuthorizedNetwork", "PersistenceIamIdentity", "ConnectMode", "AuthEnabled", "ServerCaCerts", "TransitEncryptionMode", "MaintenancePolicy", "MaintenanceSchedule", "ReplicaCount", "Nodes", "ReadEndpoint", "ReadEndpointPort", "ReadReplicasMode", "PersistenceConfig", }); - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor = - internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor, - new java.lang.String[] { "PersistenceMode", "RdbSnapshotPeriod", "RdbNextSnapshotTime", "RdbSnapshotStartTime", }); - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor, - new java.lang.String[] { "Name", "RescheduleType", "ScheduleTime", }); - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor, - new java.lang.String[] { "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow", }); - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor, - new java.lang.String[] { "Day", "StartTime", "Duration", }); - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime", }); - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor, - new java.lang.String[] { "AuthString", }); - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Instance", }); - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Instance", }); - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor, - new java.lang.String[] { "Name", "RedisVersion", }); - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor, - new java.lang.String[] { "Name", "InputConfig", }); - internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor, - new java.lang.String[] { "Name", "OutputConfig", }); - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor, - new java.lang.String[] { "Name", "DataProtectionMode", }); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor, - new java.lang.String[] { "AvailableZones", }); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor = - internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor, - new java.lang.String[] { "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DayOfWeekProto.getDescriptor(); - com.google.type.TimeOfDayProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index 630e44a4..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface DeleteInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java deleted file mode 100644 index 5600f9c3..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface GetInstanceAuthStringRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 84700e72..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region.
-   * 
- * - * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java deleted file mode 100644 index b644250d..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface InstanceAuthStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.InstanceAuthString) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * @return The authString. - */ - java.lang.String getAuthString(); - /** - *
-   * AUTH string set on the instance.
-   * 
- * - * string auth_string = 1; - * @return The bytes for authString. - */ - com.google.protobuf.ByteString - getAuthStringBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java deleted file mode 100644 index 986cf0c3..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1beta1/cloud_redis.proto - -package com.google.cloud.redis.v1beta1; - -public interface ZoneMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ZoneMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java new file mode 100644 index 00000000..9dd93069 --- /dev/null +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java @@ -0,0 +1,678 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public final class CloudRedisServiceV1Proto { + private CloudRedisServiceV1Proto() {} + + 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_redis_v1_NodeInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_TlsCertificate_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/redis/v1/cloud_redis.prot" + + "o\022\025google.cloud.redis.v1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032#google/longrunning/" + + "operations.proto\032\036google/protobuf/durati" + + "on.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\032\033goo" + + "gle/type/dayofweek.proto\032\033google/type/ti" + + "meofday.proto\".\n\010NodeInfo\022\017\n\002id\030\001 \001(\tB\003\340" + + "A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\236\020\n\010Instance\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022;\n\006l" + + "abels\030\003 \003(\0132+.google.cloud.redis.v1.Inst" + + "ance.LabelsEntry\022\030\n\013location_id\030\004 \001(\tB\003\340" + + "A\001\022$\n\027alternative_location_id\030\005 \001(\tB\003\340A\001" + + "\022\032\n\rredis_version\030\007 \001(\tB\003\340A\001\022\036\n\021reserved" + + "_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022secondary_ip_ran" + + "ge\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001(\tB\003\340A\003\022\021\n\004port" + + "\030\013 \001(\005B\003\340A\003\022 \n\023current_location_id\030\014 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0229\n\005state\030\016 \001(\0162%.goo" + + "gle.cloud.redis.v1.Instance.StateB\003\340A\003\022\033" + + "\n\016status_message\030\017 \001(\tB\003\340A\003\022M\n\rredis_con" + + "figs\030\020 \003(\01321.google.cloud.redis.v1.Insta" + + "nce.RedisConfigsEntryB\003\340A\001\0227\n\004tier\030\021 \001(\016" + + "2$.google.cloud.redis.v1.Instance.TierB\003" + + "\340A\002\022\033\n\016memory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022auth" + + "orized_network\030\024 \001(\tB\003\340A\001\022%\n\030persistence" + + "_iam_identity\030\025 \001(\tB\003\340A\003\022F\n\014connect_mode" + + "\030\026 \001(\0162+.google.cloud.redis.v1.Instance." + + "ConnectModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003" + + "\340A\001\022C\n\017server_ca_certs\030\031 \003(\0132%.google.cl" + + "oud.redis.v1.TlsCertificateB\003\340A\003\022[\n\027tran" + + "sit_encryption_mode\030\032 \001(\01625.google.cloud" + + ".redis.v1.Instance.TransitEncryptionMode" + + "B\003\340A\001\022I\n\022maintenance_policy\030\033 \001(\0132(.goog" + + "le.cloud.redis.v1.MaintenancePolicyB\003\340A\001" + + "\022M\n\024maintenance_schedule\030\034 \001(\0132*.google." + + "cloud.redis.v1.MaintenanceScheduleB\003\340A\003\022" + + "\032\n\rreplica_count\030\037 \001(\005B\003\340A\001\0223\n\005nodes\030 \003" + + "(\0132\037.google.cloud.redis.v1.NodeInfoB\003\340A\003" + + "\022\032\n\rread_endpoint\030! \001(\tB\003\340A\003\022\037\n\022read_end" + + "point_port\030\" \001(\005B\003\340A\003\022Q\n\022read_replicas_m" + + "ode\030# \001(\01620.google.cloud.redis.v1.Instan" + + "ce.ReadReplicasModeB\003\340A\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021Redis" + + "ConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\224\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010" + + "DELETING\020\004\022\r\n\tREPAIRING\020\005\022\017\n\013MAINTENANCE" + + "\020\006\022\r\n\tIMPORTING\020\010\022\020\n\014FAILING_OVER\020\t\"8\n\004T" + + "ier\022\024\n\020TIER_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013" + + "STANDARD_HA\020\003\"[\n\013ConnectMode\022\034\n\030CONNECT_" + + "MODE_UNSPECIFIED\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032" + + "\n\026PRIVATE_SERVICE_ACCESS\020\002\"i\n\025TransitEnc" + + "ryptionMode\022\'\n#TRANSIT_ENCRYPTION_MODE_U" + + "NSPECIFIED\020\000\022\031\n\025SERVER_AUTHENTICATION\020\001\022" + + "\014\n\010DISABLED\020\002\"m\n\020ReadReplicasMode\022\"\n\036REA" + + "D_REPLICAS_MODE_UNSPECIFIED\020\000\022\032\n\026READ_RE" + + "PLICAS_DISABLED\020\001\022\031\n\025READ_REPLICAS_ENABL" + + "ED\020\002:`\352A]\n\035redis.googleapis.com/Instance" + + "\022\202\323\344\223\002/\022-/v1/{parent=projects/*/loca" + + "tions/*}/instances\332A\006parent\022\227\001\n\013GetInsta" + + "nce\022).google.cloud.redis.v1.GetInstanceR" + + "equest\032\037.google.cloud.redis.v1.Instance\"" + + "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/" + + "*/instances/*}\332A\004name\022\300\001\n\025GetInstanceAut" + + "hString\0223.google.cloud.redis.v1.GetInsta" + + "nceAuthStringRequest\032).google.cloud.redi" + + "s.v1.InstanceAuthString\"G\202\323\344\223\002:\0228/v1/{na" + + "me=projects/*/locations/*/instances/*}/a" + + "uthString\332A\004name\022\211\002\n\016CreateInstance\022,.go" + + "ogle.cloud.redis.v1.CreateInstanceReques" + + "t\032\035.google.longrunning.Operation\"\251\001\202\323\344\223\002" + + "9\"-/v1/{parent=projects/*/locations/*}/i" + + "nstances:\010instance\332A\033parent,instance_id," + + "instance\312AI\n\036google.cloud.redis.v1.Insta" + + "nce\022\'google.cloud.redis.v1.OperationMeta" + + "data\022\213\002\n\016UpdateInstance\022,.google.cloud.r" + + "edis.v1.UpdateInstanceRequest\032\035.google.l" + + "ongrunning.Operation\"\253\001\202\323\344\223\002B26/v1/{inst" + + "ance.name=projects/*/locations/*/instanc" + + "es/*}:\010instance\332A\024update_mask,instance\312A" + + "I\n\036google.cloud.redis.v1.Instance\022\'googl" + + "e.cloud.redis.v1.OperationMetadata\022\203\002\n\017U" + + "pgradeInstance\022-.google.cloud.redis.v1.U" + + "pgradeInstanceRequest\032\035.google.longrunni" + + "ng.Operation\"\241\001\202\323\344\223\002:\"5/v1/{name=project" + + "s/*/locations/*/instances/*}:upgrade:\001*\332" + + "A\022name,redis_version\312AI\n\036google.cloud.re" + + "dis.v1.Instance\022\'google.cloud.redis.v1.O" + + "perationMetadata\022\377\001\n\016ImportInstance\022,.go" + + "ogle.cloud.redis.v1.ImportInstanceReques" + + "t\032\035.google.longrunning.Operation\"\237\001\202\323\344\223\002" + + "9\"4/v1/{name=projects/*/locations/*/inst" + + "ances/*}:import:\001*\332A\021name,input_config\312A" + + "I\n\036google.cloud.redis.v1.Instance\022\'googl" + + "e.cloud.redis.v1.OperationMetadata\022\200\002\n\016E" + + "xportInstance\022,.google.cloud.redis.v1.Ex" + + "portInstanceRequest\032\035.google.longrunning" + + ".Operation\"\240\001\202\323\344\223\0029\"4/v1/{name=projects/" + + "*/locations/*/instances/*}:export:\001*\332A\022n" + + "ame,output_config\312AI\n\036google.cloud.redis" + + ".v1.Instance\022\'google.cloud.redis.v1.Oper" + + "ationMetadata\022\215\002\n\020FailoverInstance\022..goo" + + "gle.cloud.redis.v1.FailoverInstanceReque" + + "st\032\035.google.longrunning.Operation\"\251\001\202\323\344\223" + + "\002;\"6/v1/{name=projects/*/locations/*/ins" + + "tances/*}:failover:\001*\332A\031name,data_protec" + + "tion_mode\312AI\n\036google.cloud.redis.v1.Inst" + + "ance\022\'google.cloud.redis.v1.OperationMet" + + "adata\022\336\001\n\016DeleteInstance\022,.google.cloud." + + "redis.v1.DeleteInstanceRequest\032\035.google." + + "longrunning.Operation\"\177\202\323\344\223\002/*-/v1/{name" + + "=projects/*/locations/*/instances/*}\332A\004n" + + "ame\312A@\n\025google.protobuf.Empty\022\'google.cl" + + "oud.redis.v1.OperationMetadata\022\257\002\n\025Resch" + + "eduleMaintenance\0223.google.cloud.redis.v1" + + ".RescheduleMaintenanceRequest\032\035.google.l" + + "ongrunning.Operation\"\301\001\202\323\344\223\002H\"C/v1/{name" + + "=projects/*/locations/*/instances/*}:res" + + "cheduleMaintenance:\001*\332A$name, reschedule" + + "_type, schedule_time\312AI\n\036google.cloud.re" + + "dis.v1.Instance\022\'google.cloud.redis.v1.O" + + "perationMetadata\032H\312A\024redis.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformBs\n\031com.google.cloud.redis.v1B" + + "\030CloudRedisServiceV1ProtoP\001Z:google.gola" + + "ng.org/genproto/googleapis/cloud/redis/v" + + "1;redisb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }); + internal_static_google_cloud_redis_v1_NodeInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_NodeInfo_descriptor, + new java.lang.String[] { + "Id", "Zone", + }); + internal_static_google_cloud_redis_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Labels", + "LocationId", + "AlternativeLocationId", + "RedisVersion", + "ReservedIpRange", + "SecondaryIpRange", + "Host", + "Port", + "CurrentLocationId", + "CreateTime", + "State", + "StatusMessage", + "RedisConfigs", + "Tier", + "MemorySizeGb", + "AuthorizedNetwork", + "PersistenceIamIdentity", + "ConnectMode", + "AuthEnabled", + "ServerCaCerts", + "TransitEncryptionMode", + "MaintenancePolicy", + "MaintenanceSchedule", + "ReplicaCount", + "Nodes", + "ReadEndpoint", + "ReadEndpointPort", + "ReadReplicasMode", + }); + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor, + new java.lang.String[] { + "Name", "RescheduleType", "ScheduleTime", + }); + internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow", + }); + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor, + new java.lang.String[] { + "Day", "StartTime", "Duration", + }); + internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime", + }); + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor, + new java.lang.String[] { + "AuthString", + }); + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", "Instance", + }); + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Instance", + }); + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "RedisVersion", + }); + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_v1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GcsSource_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_redis_v1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_InputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "InputConfig", + }); + internal_static_google_cloud_redis_v1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_redis_v1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "OutputConfig", + }); + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "DataProtectionMode", + }); + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor, + new java.lang.String[] { + "AvailableZones", + }); + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor = + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_redis_v1_TlsCertificate_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_TlsCertificate_descriptor, + new java.lang.String[] { + "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java index f3b3327c..4a74d878 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -26,16 +44,15 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private CreateInstanceRequest( 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(); - instanceId_ = s; - break; - } - case 26: { - com.google.cloud.redis.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); + parent_ = s; + break; } - instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + instanceId_ = s; + break; } + case 26: + { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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) { @@ -93,36 +114,43 @@ private CreateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.CreateInstanceRequest.class, com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.CreateInstanceRequest.class, + com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +159,33 @@ 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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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 INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -177,6 +209,7 @@ public java.lang.String getParent() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -185,14 +218,15 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** + * + * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -204,16 +238,15 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -224,11 +257,15 @@ public java.lang.String getInstanceId() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.redis.v1.Instance instance_; /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -236,11 +273,15 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override @@ -248,11 +289,14 @@ public com.google.cloud.redis.v1.Instance getInstance() { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -260,6 +304,7 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,8 +316,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -298,8 +342,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,21 +352,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.redis.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.CreateInstanceRequest other = (com.google.cloud.redis.v1.CreateInstanceRequest) obj; + com.google.cloud.redis.v1.CreateInstanceRequest other = + (com.google.cloud.redis.v1.CreateInstanceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -349,118 +390,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.CreateInstanceRequest 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.redis.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.CreateInstanceRequest) com.google.cloud.redis.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.CreateInstanceRequest.class, com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.CreateInstanceRequest.class, + com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.CreateInstanceRequest.newBuilder() @@ -468,16 +518,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(); @@ -495,9 +544,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -516,7 +565,8 @@ public com.google.cloud.redis.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.redis.v1.CreateInstanceRequest result = new com.google.cloud.redis.v1.CreateInstanceRequest(this); + com.google.cloud.redis.v1.CreateInstanceRequest result = + new com.google.cloud.redis.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -532,38 +582,39 @@ public com.google.cloud.redis.v1.CreateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -571,7 +622,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -614,20 +666,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.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; @@ -636,22 +692,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -659,60 +718,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -720,6 +792,8 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -731,13 +805,13 @@ public Builder setParentBytes(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -746,6 +820,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -757,15 +833,14 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -773,6 +848,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -784,20 +861,22 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -809,15 +888,18 @@ public Builder setInstanceId(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -829,16 +911,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -846,39 +928,55 @@ public Builder setInstanceIdBytes( private com.google.cloud.redis.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.redis.v1.Instance, + com.google.cloud.redis.v1.Instance.Builder, + com.google.cloud.redis.v1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.redis.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { @@ -894,14 +992,16 @@ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.redis.v1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.redis.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -912,17 +1012,22 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -934,11 +1039,14 @@ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -952,55 +1060,68 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> + com.google.cloud.redis.v1.Instance, + com.google.cloud.redis.v1.Instance.Builder, + com.google.cloud.redis.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, + com.google.cloud.redis.v1.Instance.Builder, + com.google.cloud.redis.v1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1010,12 +1131,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.CreateInstanceRequest) private static final com.google.cloud.redis.v1.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.CreateInstanceRequest(); } @@ -1024,16 +1145,16 @@ public static com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1048,6 +1169,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java index 5ed86192..27069c04 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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 logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -43,10 +70,13 @@ public interface CreateInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -58,35 +88,46 @@ public interface CreateInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.redis.v1.Instance getInstance(); /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java index 40b766ff..7c77347a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteInstanceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.DeleteInstanceRequest.class, com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1.DeleteInstanceRequest.class, + com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -111,31 +136,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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.redis.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.DeleteInstanceRequest other = (com.google.cloud.redis.v1.DeleteInstanceRequest) obj; + com.google.cloud.redis.v1.DeleteInstanceRequest other = + (com.google.cloud.redis.v1.DeleteInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest 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.redis.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.DeleteInstanceRequest) com.google.cloud.redis.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.DeleteInstanceRequest.class, com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1.DeleteInstanceRequest.class, + com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.DeleteInstanceRequest.newBuilder() @@ -326,16 +362,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(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.redis.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.redis.v1.DeleteInstanceRequest result = new com.google.cloud.redis.v1.DeleteInstanceRequest(this); + com.google.cloud.redis.v1.DeleteInstanceRequest result = + new com.google.cloud.redis.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.redis.v1.DeleteInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.DeleteInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -451,20 +489,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -473,22 +515,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -496,67 +541,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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); } @@ -566,12 +624,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.DeleteInstanceRequest) private static final com.google.cloud.redis.v1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.DeleteInstanceRequest(); } @@ -580,16 +638,16 @@ public static com.google.cloud.redis.v1.DeleteInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +662,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..28ade820 --- /dev/null +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +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/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface DeleteInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java index b0345c7e..12a3a3cb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ExportInstanceRequest} */ -public final class ExportInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ExportInstanceRequest) ExportInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportInstanceRequest.newBuilder() to construct. private ExportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private ExportInstanceRequest( 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 26: { - com.google.cloud.redis.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + name_ = s; + break; } - outputConfig_ = input.readMessage(com.google.cloud.redis.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.redis.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.redis.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = 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) { @@ -86,29 +107,33 @@ private ExportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ExportInstanceRequest.class, com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ExportInstanceRequest.class, + com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -116,6 +141,7 @@ private ExportInstanceRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -124,14 +150,15 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -139,16 +166,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -159,11 +185,16 @@ public java.lang.String getName() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1.OutputConfig outputConfig_; /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -171,23 +202,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.redis.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -195,6 +237,7 @@ public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -227,8 +269,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,19 +279,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.redis.v1.ExportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.ExportInstanceRequest other = (com.google.cloud.redis.v1.ExportInstanceRequest) obj; + com.google.cloud.redis.v1.ExportInstanceRequest other = + (com.google.cloud.redis.v1.ExportInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +314,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ExportInstanceRequest 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.redis.v1.ExportInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ExportInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.ExportInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.ExportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ExportInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ExportInstanceRequest) com.google.cloud.redis.v1.ExportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ExportInstanceRequest.class, com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ExportInstanceRequest.class, + com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.ExportInstanceRequest.newBuilder() @@ -393,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(); @@ -418,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; } @java.lang.Override @@ -439,7 +487,8 @@ public com.google.cloud.redis.v1.ExportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.ExportInstanceRequest buildPartial() { - com.google.cloud.redis.v1.ExportInstanceRequest result = new com.google.cloud.redis.v1.ExportInstanceRequest(this); + com.google.cloud.redis.v1.ExportInstanceRequest result = + new com.google.cloud.redis.v1.ExportInstanceRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -454,38 +503,39 @@ public com.google.cloud.redis.v1.ExportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ExportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.ExportInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.ExportInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -493,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.ExportInstanceRequest other) { - if (other == com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -532,6 +583,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -539,13 +592,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -554,6 +607,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -561,15 +616,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -577,6 +631,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -584,20 +640,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -605,15 +663,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -621,16 +682,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -638,39 +699,58 @@ public Builder setNameBytes( private com.google.cloud.redis.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, com.google.cloud.redis.v1.OutputConfig.Builder, com.google.cloud.redis.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.redis.v1.OutputConfig, + com.google.cloud.redis.v1.OutputConfig.Builder, + com.google.cloud.redis.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.redis.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -686,14 +766,17 @@ public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOutputConfig( - com.google.cloud.redis.v1.OutputConfig.Builder builderForValue) { + public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -704,17 +787,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.redis.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -726,11 +815,15 @@ public Builder mergeOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -744,55 +837,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, com.google.cloud.redis.v1.OutputConfig.Builder, com.google.cloud.redis.v1.OutputConfigOrBuilder> + com.google.cloud.redis.v1.OutputConfig, + com.google.cloud.redis.v1.OutputConfig.Builder, + com.google.cloud.redis.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, com.google.cloud.redis.v1.OutputConfig.Builder, com.google.cloud.redis.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.OutputConfig, + com.google.cloud.redis.v1.OutputConfig.Builder, + com.google.cloud.redis.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ExportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ExportInstanceRequest) private static final com.google.cloud.redis.v1.ExportInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ExportInstanceRequest(); } @@ -816,16 +925,16 @@ public static com.google.cloud.redis.v1.ExportInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ExportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java index 48221b73..b7f082a5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ExportInstanceRequestOrBuilder extends +public interface ExportInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ExportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -15,10 +33,13 @@ public interface ExportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -26,35 +47,49 @@ public interface ExportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.redis.v1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java index fbe068c1..470a41ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.FailoverInstanceRequest} */ -public final class FailoverInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FailoverInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.FailoverInstanceRequest) FailoverInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FailoverInstanceRequest.newBuilder() to construct. private FailoverInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FailoverInstanceRequest() { name_ = ""; dataProtectionMode_ = 0; @@ -26,16 +44,15 @@ private FailoverInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FailoverInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FailoverInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private FailoverInstanceRequest( 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: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - dataProtectionMode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + dataProtectionMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,41 @@ private FailoverInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.FailoverInstanceRequest.class, com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1.FailoverInstanceRequest.class, + com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); } /** + * + * *
    * Specifies different modes of operation in relation to the data retention.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode} */ - public enum DataProtectionMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -119,6 +143,8 @@ public enum DataProtectionMode
      */
     DATA_PROTECTION_MODE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -130,6 +156,8 @@ public enum DataProtectionMode
      */
     LIMITED_DATA_LOSS(1),
     /**
+     *
+     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -141,6 +169,8 @@ public enum DataProtectionMode ; /** + * + * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -150,6 +180,8 @@ public enum DataProtectionMode
      */
     public static final int DATA_PROTECTION_MODE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -161,6 +193,8 @@ public enum DataProtectionMode
      */
     public static final int LIMITED_DATA_LOSS_VALUE = 1;
     /**
+     *
+     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -169,7 +203,6 @@ public enum DataProtectionMode */ public static final int FORCE_DATA_LOSS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -194,10 +227,14 @@ public static DataProtectionMode valueOf(int value) { */ public static DataProtectionMode forNumber(int value) { switch (value) { - case 0: return DATA_PROTECTION_MODE_UNSPECIFIED; - case 1: return LIMITED_DATA_LOSS; - case 2: return FORCE_DATA_LOSS; - default: return null; + case 0: + return DATA_PROTECTION_MODE_UNSPECIFIED; + case 1: + return LIMITED_DATA_LOSS; + case 2: + return FORCE_DATA_LOSS; + default: + return null; } } @@ -205,29 +242,31 @@ public static DataProtectionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DataProtectionMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataProtectionMode findValueByNumber(int number) { - return DataProtectionMode.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 DataProtectionMode findValueByNumber(int number) { + return DataProtectionMode.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.redis.v1.FailoverInstanceRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.v1.FailoverInstanceRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final DataProtectionMode[] VALUES = values(); @@ -235,8 +274,7 @@ public DataProtectionMode findValueByNumber(int number) { public static DataProtectionMode 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; @@ -256,13 +294,18 @@ private DataProtectionMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -271,31 +314,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -306,33 +351,51 @@ public java.lang.String getName() { public static final int DATA_PROTECTION_MODE_FIELD_NUMBER = 2; private int dataProtectionMode_; /** + * + * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override public int getDataProtectionModeValue() { + @java.lang.Override + public int getDataProtectionModeValue() { return dataProtectionMode_; } /** + * + * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProtectionMode. */ - @java.lang.Override public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { + @java.lang.Override + public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode + getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); - return result == null ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = + com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf( + dataProtectionMode_); + return result == null + ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,12 +407,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (dataProtectionMode_ != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { + if (dataProtectionMode_ + != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode + .DATA_PROTECTION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, dataProtectionMode_); } unknownFields.writeTo(output); @@ -364,9 +429,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (dataProtectionMode_ != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dataProtectionMode_); + if (dataProtectionMode_ + != com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode + .DATA_PROTECTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataProtectionMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -376,15 +443,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.redis.v1.FailoverInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.FailoverInstanceRequest other = (com.google.cloud.redis.v1.FailoverInstanceRequest) obj; + com.google.cloud.redis.v1.FailoverInstanceRequest other = + (com.google.cloud.redis.v1.FailoverInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (dataProtectionMode_ != other.dataProtectionMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -407,117 +474,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.FailoverInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.FailoverInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.FailoverInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.FailoverInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.FailoverInstanceRequest) com.google.cloud.redis.v1.FailoverInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.FailoverInstanceRequest.class, com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1.FailoverInstanceRequest.class, + com.google.cloud.redis.v1.FailoverInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.FailoverInstanceRequest.newBuilder() @@ -525,16 +601,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +621,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; } @java.lang.Override @@ -567,7 +642,8 @@ public com.google.cloud.redis.v1.FailoverInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.FailoverInstanceRequest buildPartial() { - com.google.cloud.redis.v1.FailoverInstanceRequest result = new com.google.cloud.redis.v1.FailoverInstanceRequest(this); + com.google.cloud.redis.v1.FailoverInstanceRequest result = + new com.google.cloud.redis.v1.FailoverInstanceRequest(this); result.name_ = name_; result.dataProtectionMode_ = dataProtectionMode_; onBuilt(); @@ -578,38 +654,39 @@ public com.google.cloud.redis.v1.FailoverInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.FailoverInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.FailoverInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.FailoverInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -617,7 +694,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.FailoverInstanceRequest other) { - if (other == com.google.cloud.redis.v1.FailoverInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.FailoverInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -644,7 +722,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.FailoverInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1.FailoverInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -656,20 +735,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -678,22 +761,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -701,60 +787,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -762,85 +861,117 @@ public Builder setNameBytes( private int dataProtectionMode_ = 0; /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override public int getDataProtectionModeValue() { + @java.lang.Override + public int getDataProtectionModeValue() { return dataProtectionMode_; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for dataProtectionMode to set. * @return This builder for chaining. */ public Builder setDataProtectionModeValue(int value) { - + dataProtectionMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProtectionMode. */ @java.lang.Override - public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { + public com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode + getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); - return result == null ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode result = + com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.valueOf( + dataProtectionMode_); + return result == null + ? com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The dataProtectionMode to set. * @return This builder for chaining. */ - public Builder setDataProtectionMode(com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode value) { + public Builder setDataProtectionMode( + com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode value) { if (value == null) { throw new NullPointerException(); } - + dataProtectionMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDataProtectionMode() { - + dataProtectionMode_ = 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); } @@ -850,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.FailoverInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.FailoverInstanceRequest) private static final com.google.cloud.redis.v1.FailoverInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.FailoverInstanceRequest(); } @@ -864,16 +995,16 @@ public static com.google.cloud.redis.v1.FailoverInstanceRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FailoverInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FailoverInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FailoverInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,6 +1019,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.FailoverInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java index f5e0bda4..329e95a0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/FailoverInstanceRequestOrBuilder.java @@ -1,53 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface FailoverInstanceRequestOrBuilder extends +public interface FailoverInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.FailoverInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for dataProtectionMode. */ int getDataProtectionModeValue(); /** + * + * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProtectionMode. */ com.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode(); diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java index aa159db3..f14d21d0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * The Cloud Storage location for the output content
  * 
* * Protobuf type {@code google.cloud.redis.v1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsDestination.class, com.google.cloud.redis.v1.GcsDestination.Builder.class); + com.google.cloud.redis.v1.GcsDestination.class, + com.google.cloud.redis.v1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -178,15 +201,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.GcsDestination)) { return super.equals(obj); } com.google.cloud.redis.v1.GcsDestination other = (com.google.cloud.redis.v1.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +227,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsDestination 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.redis.v1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the output content
    * 
* * Protobuf type {@code google.cloud.redis.v1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GcsDestination) com.google.cloud.redis.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsDestination.class, com.google.cloud.redis.v1.GcsDestination.Builder.class); + com.google.cloud.redis.v1.GcsDestination.class, + com.google.cloud.redis.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.redis.v1.GcsDestination.newBuilder() @@ -324,16 +355,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; } @java.lang.Override @@ -364,7 +394,8 @@ public com.google.cloud.redis.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.redis.v1.GcsDestination buildPartial() { - com.google.cloud.redis.v1.GcsDestination result = new com.google.cloud.redis.v1.GcsDestination(this); + com.google.cloud.redis.v1.GcsDestination result = + new com.google.cloud.redis.v1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -374,38 +405,39 @@ public com.google.cloud.redis.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GcsDestination) { - return mergeFrom((com.google.cloud.redis.v1.GcsDestination)other); + return mergeFrom((com.google.cloud.redis.v1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -449,19 +481,21 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -470,21 +504,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -492,64 +527,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GcsDestination) private static final com.google.cloud.redis.v1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GcsDestination(); } @@ -573,16 +615,16 @@ public static com.google.cloud.redis.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java index 8fb82e36..73b29824 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java @@ -1,31 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java index 7b82a629..97283154 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * The Cloud Storage location for the input content
  * 
* * Protobuf type {@code google.cloud.redis.v1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsSource.class, com.google.cloud.redis.v1.GcsSource.Builder.class); + com.google.cloud.redis.v1.GcsSource.class, + com.google.cloud.redis.v1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -176,15 +199,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.GcsSource)) { return super.equals(obj); } com.google.cloud.redis.v1.GcsSource other = (com.google.cloud.redis.v1.GcsSource) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +225,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GcsSource parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.redis.v1.GcsSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsSource 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.redis.v1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the input content
    * 
* * Protobuf type {@code google.cloud.redis.v1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GcsSource) com.google.cloud.redis.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsSource.class, com.google.cloud.redis.v1.GcsSource.Builder.class); + com.google.cloud.redis.v1.GcsSource.class, + com.google.cloud.redis.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.redis.v1.GcsSource.newBuilder() @@ -322,16 +352,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GcsSource_descriptor; } @java.lang.Override @@ -372,38 +401,39 @@ public com.google.cloud.redis.v1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GcsSource) { - return mergeFrom((com.google.cloud.redis.v1.GcsSource)other); + return mergeFrom((com.google.cloud.redis.v1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -447,18 +477,20 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -467,20 +499,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -488,61 +521,68 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GcsSource) private static final com.google.cloud.redis.v1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GcsSource(); } @@ -566,16 +606,16 @@ public static com.google.cloud.redis.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java index 32af5f56..33ac74e5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java index a21a595c..3f5941cc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [GetInstanceAuthString][google.cloud.redis.v1.CloudRedis.GetInstanceAuthString].
  * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceAuthStringRequest} */ -public final class GetInstanceAuthStringRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceAuthStringRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GetInstanceAuthStringRequest) GetInstanceAuthStringRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceAuthStringRequest.newBuilder() to construct. private GetInstanceAuthStringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceAuthStringRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceAuthStringRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstanceAuthStringRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstanceAuthStringRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetInstanceAuthStringRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, + com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -111,31 +136,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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.redis.v1.GetInstanceAuthStringRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.GetInstanceAuthStringRequest other = (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) obj; + com.google.cloud.redis.v1.GetInstanceAuthStringRequest other = + (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.GetInstanceAuthStringRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.redis.v1.GetInstanceAuthStringRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetInstanceAuthString][google.cloud.redis.v1.CloudRedis.GetInstanceAuthString].
    * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceAuthStringRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GetInstanceAuthStringRequest) com.google.cloud.redis.v1.GetInstanceAuthStringRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceAuthStringRequest.class, + com.google.cloud.redis.v1.GetInstanceAuthStringRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.GetInstanceAuthStringRequest.newBuilder() @@ -326,16 +363,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(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.redis.v1.GetInstanceAuthStringRequest build() { @java.lang.Override public com.google.cloud.redis.v1.GetInstanceAuthStringRequest buildPartial() { - com.google.cloud.redis.v1.GetInstanceAuthStringRequest result = new com.google.cloud.redis.v1.GetInstanceAuthStringRequest(this); + com.google.cloud.redis.v1.GetInstanceAuthStringRequest result = + new com.google.cloud.redis.v1.GetInstanceAuthStringRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.redis.v1.GetInstanceAuthStringRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GetInstanceAuthStringRequest) { - return mergeFrom((com.google.cloud.redis.v1.GetInstanceAuthStringRequest)other); + return mergeFrom((com.google.cloud.redis.v1.GetInstanceAuthStringRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.GetInstanceAuthStringRequest other) { - if (other == com.google.cloud.redis.v1.GetInstanceAuthStringRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.GetInstanceAuthStringRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GetInstanceAuthStringRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceAuthStringRequest) private static final com.google.cloud.redis.v1.GetInstanceAuthStringRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GetInstanceAuthStringRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.redis.v1.GetInstanceAuthStringRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceAuthStringRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceAuthStringRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceAuthStringRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceAuthStringRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1.GetInstanceAuthStringRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java new file mode 100644 index 00000000..f1bfdec8 --- /dev/null +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceAuthStringRequestOrBuilder.java @@ -0,0 +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/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface GetInstanceAuthStringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceAuthStringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java index 1ad7f8dd..b5fd25b3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} */ -public final class GetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GetInstanceRequest) GetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceRequest.class, com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceRequest.class, + com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -111,31 +136,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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.redis.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.GetInstanceRequest other = (com.google.cloud.redis.v1.GetInstanceRequest) obj; + com.google.cloud.redis.v1.GetInstanceRequest other = + (com.google.cloud.redis.v1.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.GetInstanceRequest 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.redis.v1.GetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GetInstanceRequest) com.google.cloud.redis.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GetInstanceRequest.class, com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1.GetInstanceRequest.class, + com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.GetInstanceRequest.newBuilder() @@ -326,16 +362,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(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.redis.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.GetInstanceRequest buildPartial() { - com.google.cloud.redis.v1.GetInstanceRequest result = new com.google.cloud.redis.v1.GetInstanceRequest(this); + com.google.cloud.redis.v1.GetInstanceRequest result = + new com.google.cloud.redis.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.redis.v1.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -451,20 +488,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -473,22 +514,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -496,67 +540,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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); } @@ -566,12 +623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceRequest) private static final com.google.cloud.redis.v1.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GetInstanceRequest(); } @@ -580,16 +637,16 @@ public static com.google.cloud.redis.v1.GetInstanceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..a179a2fe --- /dev/null +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java @@ -0,0 +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/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java index 432a53bc..657d811a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ImportInstanceRequest} */ -public final class ImportInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ImportInstanceRequest) ImportInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportInstanceRequest.newBuilder() to construct. private ImportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private ImportInstanceRequest( 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 26: { - com.google.cloud.redis.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + name_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.redis.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.redis.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.redis.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = 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) { @@ -86,29 +107,33 @@ private ImportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ImportInstanceRequest.class, com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ImportInstanceRequest.class, + com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -116,6 +141,7 @@ private ImportInstanceRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -124,14 +150,15 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -139,16 +166,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -159,11 +185,16 @@ public java.lang.String getName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1.InputConfig inputConfig_; /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -171,23 +202,34 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.redis.v1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -195,6 +237,7 @@ public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -227,8 +269,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,19 +279,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.redis.v1.ImportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.ImportInstanceRequest other = (com.google.cloud.redis.v1.ImportInstanceRequest) obj; + com.google.cloud.redis.v1.ImportInstanceRequest other = + (com.google.cloud.redis.v1.ImportInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +314,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ImportInstanceRequest 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.redis.v1.ImportInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ImportInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.ImportInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.ImportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ImportInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ImportInstanceRequest) com.google.cloud.redis.v1.ImportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ImportInstanceRequest.class, com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1.ImportInstanceRequest.class, + com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.ImportInstanceRequest.newBuilder() @@ -393,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(); @@ -418,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; } @java.lang.Override @@ -439,7 +487,8 @@ public com.google.cloud.redis.v1.ImportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.ImportInstanceRequest buildPartial() { - com.google.cloud.redis.v1.ImportInstanceRequest result = new com.google.cloud.redis.v1.ImportInstanceRequest(this); + com.google.cloud.redis.v1.ImportInstanceRequest result = + new com.google.cloud.redis.v1.ImportInstanceRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -454,38 +503,39 @@ public com.google.cloud.redis.v1.ImportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ImportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.ImportInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.ImportInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -493,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.ImportInstanceRequest other) { - if (other == com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -532,6 +583,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -539,13 +592,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -554,6 +607,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -561,15 +616,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -577,6 +631,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -584,20 +640,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -605,15 +663,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -621,16 +682,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -638,39 +699,58 @@ public Builder setNameBytes( private com.google.cloud.redis.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, com.google.cloud.redis.v1.InputConfig.Builder, com.google.cloud.redis.v1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.redis.v1.InputConfig, + com.google.cloud.redis.v1.InputConfig.Builder, + com.google.cloud.redis.v1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.redis.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -686,14 +766,17 @@ public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig value) { return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInputConfig( - com.google.cloud.redis.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -704,17 +787,23 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.redis.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.redis.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -726,11 +815,15 @@ public Builder mergeInputConfig(com.google.cloud.redis.v1.InputConfig value) { return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -744,55 +837,71 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.redis.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, com.google.cloud.redis.v1.InputConfig.Builder, com.google.cloud.redis.v1.InputConfigOrBuilder> + com.google.cloud.redis.v1.InputConfig, + com.google.cloud.redis.v1.InputConfig.Builder, + com.google.cloud.redis.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, com.google.cloud.redis.v1.InputConfig.Builder, com.google.cloud.redis.v1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.InputConfig, + com.google.cloud.redis.v1.InputConfig.Builder, + com.google.cloud.redis.v1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ImportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ImportInstanceRequest) private static final com.google.cloud.redis.v1.ImportInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ImportInstanceRequest(); } @@ -816,16 +925,16 @@ public static com.google.cloud.redis.v1.ImportInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ImportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java index fdeb2994..07a13bcb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ImportInstanceRequestOrBuilder extends +public interface ImportInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ImportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -15,10 +33,13 @@ public interface ImportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -26,35 +47,49 @@ public interface ImportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.redis.v1.InputConfig getInputConfig(); /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java index 620f7e01..e6c014f0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * The input content
  * 
* * Protobuf type {@code google.cloud.redis.v1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { - } + + private InputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,29 @@ private InputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.redis.v1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.cloud.redis.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.redis.v1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.redis.v1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.redis.v1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - sourceCase_ = 1; - 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) { @@ -80,34 +98,39 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InputConfig.class, com.google.cloud.redis.v1.InputConfig.Builder.class); + com.google.cloud.redis.v1.InputConfig.class, + com.google.cloud.redis.v1.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -123,29 +146,34 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -153,21 +181,26 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.redis.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; + return (com.google.cloud.redis.v1.GcsSource) source_; } return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
@@ -177,12 +210,13 @@ public com.google.cloud.redis.v1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; + return (com.google.cloud.redis.v1.GcsSource) source_; } return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +228,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1.GcsSource) source_); } @@ -209,8 +242,9 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.redis.v1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.redis.v1.GcsSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -220,7 +254,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.InputConfig)) { return super.equals(obj); @@ -230,8 +264,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -260,118 +293,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.InputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.InputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.InputConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.redis.v1.InputConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.InputConfig 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.redis.v1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 input content
    * 
* * Protobuf type {@code google.cloud.redis.v1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.InputConfig) com.google.cloud.redis.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InputConfig.class, com.google.cloud.redis.v1.InputConfig.Builder.class); + com.google.cloud.redis.v1.InputConfig.class, + com.google.cloud.redis.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1.InputConfig.newBuilder() @@ -379,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(); @@ -398,9 +438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InputConfig_descriptor; } @java.lang.Override @@ -419,7 +459,8 @@ public com.google.cloud.redis.v1.InputConfig build() { @java.lang.Override public com.google.cloud.redis.v1.InputConfig buildPartial() { - com.google.cloud.redis.v1.InputConfig result = new com.google.cloud.redis.v1.InputConfig(this); + com.google.cloud.redis.v1.InputConfig result = + new com.google.cloud.redis.v1.InputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -436,38 +477,39 @@ public com.google.cloud.redis.v1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.InputConfig) { - return mergeFrom((com.google.cloud.redis.v1.InputConfig)other); + return mergeFrom((com.google.cloud.redis.v1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -477,13 +519,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1.InputConfig other) { if (other == com.google.cloud.redis.v1.InputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -513,12 +557,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -528,15 +572,20 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, com.google.cloud.redis.v1.GcsSource.Builder, com.google.cloud.redis.v1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.redis.v1.GcsSource, + com.google.cloud.redis.v1.GcsSource.Builder, + com.google.cloud.redis.v1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -544,11 +593,14 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -566,6 +618,8 @@ public com.google.cloud.redis.v1.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -586,14 +640,15 @@ public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource value) { return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; */ - public Builder setGcsSource( - com.google.cloud.redis.v1.GcsSource.Builder builderForValue) { + public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -604,6 +659,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -612,10 +669,13 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.redis.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.cloud.redis.v1.GcsSource.getDefaultInstance()) { - source_ = com.google.cloud.redis.v1.GcsSource.newBuilder((com.google.cloud.redis.v1.GcsSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ != com.google.cloud.redis.v1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.redis.v1.GcsSource.newBuilder( + (com.google.cloud.redis.v1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -631,6 +691,8 @@ public Builder mergeGcsSource(com.google.cloud.redis.v1.GcsSource value) { return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -654,6 +716,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -664,6 +728,8 @@ public com.google.cloud.redis.v1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -682,6 +748,8 @@ public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { } } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -689,26 +757,30 @@ public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { * .google.cloud.redis.v1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, com.google.cloud.redis.v1.GcsSource.Builder, com.google.cloud.redis.v1.GcsSourceOrBuilder> + com.google.cloud.redis.v1.GcsSource, + com.google.cloud.redis.v1.GcsSource.Builder, + com.google.cloud.redis.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, com.google.cloud.redis.v1.GcsSource.Builder, com.google.cloud.redis.v1.GcsSourceOrBuilder>( - (com.google.cloud.redis.v1.GcsSource) source_, - getParentForChildren(), - isClean()); + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.GcsSource, + com.google.cloud.redis.v1.GcsSource.Builder, + com.google.cloud.redis.v1.GcsSourceOrBuilder>( + (com.google.cloud.redis.v1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged();; + onChanged(); + ; return gcsSourceBuilder_; } + @java.lang.Override - 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 +790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.InputConfig) private static final com.google.cloud.redis.v1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.InputConfig(); } @@ -732,16 +804,16 @@ public static com.google.cloud.redis.v1.InputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +828,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java index 106bcc83..5e8b4d7b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.redis.v1.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java index 1890d7d4..390a27f6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * A Memorystore for Redis instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1.Instance} */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.Instance) InstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Instance() { name_ = ""; displayName_ = ""; @@ -44,16 +62,15 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,229 +90,262 @@ private Instance( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - alternativeLocationId_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: + { + 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 34: + { + java.lang.String s = input.readStringRequireUtf8(); - redisVersion_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); + locationId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - reservedIpRange_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + alternativeLocationId_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - host_ = s; - break; - } - case 88: { + redisVersion_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + reservedIpRange_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - currentLocationId_ = s; - break; - } - case 106: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + host_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 88: + { + port_ = input.readInt32(); + break; } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 112: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 130: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - redisConfigs_ = com.google.protobuf.MapField.newMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + currentLocationId_ = s; + break; } - com.google.protobuf.MapEntry - redisConfigs__ = input.readMessage( - RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - redisConfigs_.getMutableMap().put( - redisConfigs__.getKey(), redisConfigs__.getValue()); - break; - } - case 136: { - int rawValue = input.readEnum(); - - tier_ = rawValue; - break; - } - case 144: { + case 106: + { + 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 112: + { + int rawValue = input.readEnum(); - memorySizeGb_ = input.readInt32(); - break; - } - case 162: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - authorizedNetwork_ = s; - break; - } - case 170: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 130: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + redisConfigs_ = + com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry redisConfigs__ = + input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + redisConfigs_.getMutableMap().put(redisConfigs__.getKey(), redisConfigs__.getValue()); + break; + } + case 136: + { + int rawValue = input.readEnum(); - persistenceIamIdentity_ = s; - break; - } - case 176: { - int rawValue = input.readEnum(); + tier_ = rawValue; + break; + } + case 144: + { + memorySizeGb_ = input.readInt32(); + break; + } + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); - connectMode_ = rawValue; - break; - } - case 184: { + authorizedNetwork_ = s; + break; + } + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); - authEnabled_ = input.readBool(); - break; - } - case 202: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + persistenceIamIdentity_ = s; + break; } - serverCaCerts_.add( - input.readMessage(com.google.cloud.redis.v1.TlsCertificate.parser(), extensionRegistry)); - break; - } - case 208: { - int rawValue = input.readEnum(); + case 176: + { + int rawValue = input.readEnum(); - transitEncryptionMode_ = rawValue; - break; - } - case 218: { - com.google.cloud.redis.v1.MaintenancePolicy.Builder subBuilder = null; - if (maintenancePolicy_ != null) { - subBuilder = maintenancePolicy_.toBuilder(); + connectMode_ = rawValue; + break; } - maintenancePolicy_ = input.readMessage(com.google.cloud.redis.v1.MaintenancePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenancePolicy_); - maintenancePolicy_ = subBuilder.buildPartial(); + case 184: + { + authEnabled_ = input.readBool(); + break; } + case 202: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + serverCaCerts_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + serverCaCerts_.add( + input.readMessage( + com.google.cloud.redis.v1.TlsCertificate.parser(), extensionRegistry)); + break; + } + case 208: + { + int rawValue = input.readEnum(); - break; - } - case 226: { - com.google.cloud.redis.v1.MaintenanceSchedule.Builder subBuilder = null; - if (maintenanceSchedule_ != null) { - subBuilder = maintenanceSchedule_.toBuilder(); + transitEncryptionMode_ = rawValue; + break; } - maintenanceSchedule_ = input.readMessage(com.google.cloud.redis.v1.MaintenanceSchedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenanceSchedule_); - maintenanceSchedule_ = subBuilder.buildPartial(); + case 218: + { + com.google.cloud.redis.v1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = + input.readMessage( + com.google.cloud.redis.v1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 242: { - java.lang.String s = input.readStringRequireUtf8(); - - secondaryIpRange_ = s; - break; - } - case 248: { - - replicaCount_ = input.readInt32(); - break; - } - case 258: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 226: + { + com.google.cloud.redis.v1.MaintenanceSchedule.Builder subBuilder = null; + if (maintenanceSchedule_ != null) { + subBuilder = maintenanceSchedule_.toBuilder(); + } + maintenanceSchedule_ = + input.readMessage( + com.google.cloud.redis.v1.MaintenanceSchedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenanceSchedule_); + maintenanceSchedule_ = subBuilder.buildPartial(); + } + + break; } - nodes_.add( - input.readMessage(com.google.cloud.redis.v1.NodeInfo.parser(), extensionRegistry)); - break; - } - case 266: { - java.lang.String s = input.readStringRequireUtf8(); + case 242: + { + java.lang.String s = input.readStringRequireUtf8(); - readEndpoint_ = s; - break; - } - case 272: { + secondaryIpRange_ = s; + break; + } + case 248: + { + replicaCount_ = input.readInt32(); + break; + } + case 258: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + nodes_.add( + input.readMessage( + com.google.cloud.redis.v1.NodeInfo.parser(), extensionRegistry)); + break; + } + case 266: + { + java.lang.String s = input.readStringRequireUtf8(); - readEndpointPort_ = input.readInt32(); - break; - } - case 280: { - int rawValue = input.readEnum(); + readEndpoint_ = s; + break; + } + case 272: + { + readEndpointPort_ = input.readInt32(); + break; + } + case 280: + { + int rawValue = input.readEnum(); - readReplicasMode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + readReplicasMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -303,8 +353,7 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { serverCaCerts_ = java.util.Collections.unmodifiableList(serverCaCerts_); @@ -316,43 +365,48 @@ private Instance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_Instance_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 internalGetLabels(); case 16: return internalGetRedisConfigs(); 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.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.Instance.class, com.google.cloud.redis.v1.Instance.Builder.class); + com.google.cloud.redis.v1.Instance.class, + com.google.cloud.redis.v1.Instance.Builder.class); } /** + * + * *
    * Represents the different states of a Redis instance.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -361,6 +415,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Redis instance is being created.
      * 
@@ -369,6 +425,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Redis instance has been created and is fully usable.
      * 
@@ -377,6 +435,8 @@ public enum State */ READY(2), /** + * + * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -387,6 +447,8 @@ public enum State
      */
     UPDATING(3),
     /**
+     *
+     *
      * 
      * Redis instance is being deleted.
      * 
@@ -395,6 +457,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -403,6 +467,8 @@ public enum State */ REPAIRING(5), /** + * + * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -411,6 +477,8 @@ public enum State */ MAINTENANCE(6), /** + * + * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -419,6 +487,8 @@ public enum State */ IMPORTING(8), /** + * + * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -430,6 +500,8 @@ public enum State ; /** + * + * *
      * Not set.
      * 
@@ -438,6 +510,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Redis instance is being created.
      * 
@@ -446,6 +520,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Redis instance has been created and is fully usable.
      * 
@@ -454,6 +530,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -464,6 +542,8 @@ public enum State
      */
     public static final int UPDATING_VALUE = 3;
     /**
+     *
+     *
      * 
      * Redis instance is being deleted.
      * 
@@ -472,6 +552,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -480,6 +562,8 @@ public enum State */ public static final int REPAIRING_VALUE = 5; /** + * + * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -488,6 +572,8 @@ public enum State */ public static final int MAINTENANCE_VALUE = 6; /** + * + * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -496,6 +582,8 @@ public enum State */ public static final int IMPORTING_VALUE = 8; /** + * + * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -504,7 +592,6 @@ public enum State */ public static final int FAILING_OVER_VALUE = 9; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -529,55 +616,61 @@ 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 READY; - case 3: return UPDATING; - case 4: return DELETING; - case 5: return REPAIRING; - case 6: return MAINTENANCE; - case 8: return IMPORTING; - case 9: return FAILING_OVER; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return UPDATING; + case 4: + return DELETING; + case 5: + return REPAIRING; + case 6: + return MAINTENANCE; + case 8: + return IMPORTING; + case 9: + return FAILING_OVER; + 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.redis.v1.Instance.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; @@ -595,15 +688,18 @@ private State(int value) { } /** + * + * *
    * Available service tiers to choose from
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.Tier} */ - public enum Tier - implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -612,6 +708,8 @@ public enum Tier */ TIER_UNSPECIFIED(0), /** + * + * *
      * BASIC tier: standalone instance
      * 
@@ -620,6 +718,8 @@ public enum Tier */ BASIC(1), /** + * + * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -631,6 +731,8 @@ public enum Tier ; /** + * + * *
      * Not set.
      * 
@@ -639,6 +741,8 @@ public enum Tier */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * BASIC tier: standalone instance
      * 
@@ -647,6 +751,8 @@ public enum Tier */ public static final int BASIC_VALUE = 1; /** + * + * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -655,7 +761,6 @@ public enum Tier */ public static final int STANDARD_HA_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -680,49 +785,49 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: return TIER_UNSPECIFIED; - case 1: return BASIC; - case 3: return STANDARD_HA; - default: return null; + case 0: + return TIER_UNSPECIFIED; + case 1: + return BASIC; + case 3: + return STANDARD_HA; + 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< - Tier> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.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 Tier findValueByNumber(int number) { + return Tier.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(1); } private static final Tier[] VALUES = values(); - public static Tier valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier 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; @@ -740,15 +845,18 @@ private Tier(int value) { } /** + * + * *
    * Available connection modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.ConnectMode} */ - public enum ConnectMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -757,6 +865,8 @@ public enum ConnectMode */ CONNECT_MODE_UNSPECIFIED(0), /** + * + * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -765,6 +875,8 @@ public enum ConnectMode */ DIRECT_PEERING(1), /** + * + * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -778,6 +890,8 @@ public enum ConnectMode
     ;
 
     /**
+     *
+     *
      * 
      * Not set.
      * 
@@ -786,6 +900,8 @@ public enum ConnectMode */ public static final int CONNECT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -794,6 +910,8 @@ public enum ConnectMode */ public static final int DIRECT_PEERING_VALUE = 1; /** + * + * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -804,7 +922,6 @@ public enum ConnectMode
      */
     public static final int PRIVATE_SERVICE_ACCESS_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -829,49 +946,49 @@ public static ConnectMode valueOf(int value) {
      */
     public static ConnectMode forNumber(int value) {
       switch (value) {
-        case 0: return CONNECT_MODE_UNSPECIFIED;
-        case 1: return DIRECT_PEERING;
-        case 2: return PRIVATE_SERVICE_ACCESS;
-        default: return null;
+        case 0:
+          return CONNECT_MODE_UNSPECIFIED;
+        case 1:
+          return DIRECT_PEERING;
+        case 2:
+          return PRIVATE_SERVICE_ACCESS;
+        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<
-        ConnectMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ConnectMode findValueByNumber(int number) {
-              return ConnectMode.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 ConnectMode findValueByNumber(int number) {
+            return ConnectMode.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(2);
     }
 
     private static final ConnectMode[] VALUES = values();
 
-    public static ConnectMode valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ConnectMode 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;
@@ -889,15 +1006,18 @@ private ConnectMode(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Available TLS modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.TransitEncryptionMode} */ - public enum TransitEncryptionMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -906,6 +1026,8 @@ public enum TransitEncryptionMode */ TRANSIT_ENCRYPTION_MODE_UNSPECIFIED(0), /** + * + * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -914,6 +1036,8 @@ public enum TransitEncryptionMode */ SERVER_AUTHENTICATION(1), /** + * + * *
      * TLS is disabled for the instance.
      * 
@@ -925,6 +1049,8 @@ public enum TransitEncryptionMode ; /** + * + * *
      * Not set.
      * 
@@ -933,6 +1059,8 @@ public enum TransitEncryptionMode */ public static final int TRANSIT_ENCRYPTION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -941,6 +1069,8 @@ public enum TransitEncryptionMode */ public static final int SERVER_AUTHENTICATION_VALUE = 1; /** + * + * *
      * TLS is disabled for the instance.
      * 
@@ -949,7 +1079,6 @@ public enum TransitEncryptionMode */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -974,10 +1103,14 @@ public static TransitEncryptionMode valueOf(int value) { */ public static TransitEncryptionMode forNumber(int value) { switch (value) { - case 0: return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; - case 1: return SERVER_AUTHENTICATION; - case 2: return DISABLED; - default: return null; + case 0: + return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; + case 1: + return SERVER_AUTHENTICATION; + case 2: + return DISABLED; + default: + return null; } } @@ -985,28 +1118,28 @@ public static TransitEncryptionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TransitEncryptionMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransitEncryptionMode findValueByNumber(int number) { - return TransitEncryptionMode.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 TransitEncryptionMode findValueByNumber(int number) { + return TransitEncryptionMode.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(3); } @@ -1015,8 +1148,7 @@ public TransitEncryptionMode findValueByNumber(int number) { public static TransitEncryptionMode 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; @@ -1034,15 +1166,18 @@ private TransitEncryptionMode(int value) { } /** + * + * *
    * Read replicas mode.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.Instance.ReadReplicasMode} */ - public enum ReadReplicasMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1052,6 +1187,8 @@ public enum ReadReplicasMode
      */
     READ_REPLICAS_MODE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1061,6 +1198,8 @@ public enum ReadReplicasMode
      */
     READ_REPLICAS_DISABLED(1),
     /**
+     *
+     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1073,6 +1212,8 @@ public enum ReadReplicasMode
     ;
 
     /**
+     *
+     *
      * 
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1082,6 +1223,8 @@ public enum ReadReplicasMode
      */
     public static final int READ_REPLICAS_MODE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1091,6 +1234,8 @@ public enum ReadReplicasMode
      */
     public static final int READ_REPLICAS_DISABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1100,7 +1245,6 @@ public enum ReadReplicasMode
      */
     public static final int READ_REPLICAS_ENABLED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1125,39 +1269,42 @@ public static ReadReplicasMode valueOf(int value) {
      */
     public static ReadReplicasMode forNumber(int value) {
       switch (value) {
-        case 0: return READ_REPLICAS_MODE_UNSPECIFIED;
-        case 1: return READ_REPLICAS_DISABLED;
-        case 2: return READ_REPLICAS_ENABLED;
-        default: return null;
+        case 0:
+          return READ_REPLICAS_MODE_UNSPECIFIED;
+        case 1:
+          return READ_REPLICAS_DISABLED;
+        case 2:
+          return READ_REPLICAS_ENABLED;
+        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<
-        ReadReplicasMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ReadReplicasMode findValueByNumber(int number) {
-              return ReadReplicasMode.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 ReadReplicasMode findValueByNumber(int number) {
+                return ReadReplicasMode.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.redis.v1.Instance.getDescriptor().getEnumTypes().get(4);
     }
 
@@ -1166,8 +1313,7 @@ public ReadReplicasMode findValueByNumber(int number) {
     public static ReadReplicasMode 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;
@@ -1187,6 +1333,8 @@ private ReadReplicasMode(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1199,6 +1347,7 @@ private ReadReplicasMode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -1207,14 +1356,15 @@ 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. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1227,16 +1377,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1247,11 +1396,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1260,29 +1412,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; } } /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @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 { @@ -1291,24 +1443,23 @@ public java.lang.String getDisplayName() { } public static final int LABELS_FIELD_NUMBER = 3; + 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.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_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.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_Instance_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_; } @@ -1317,28 +1468,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -1346,11 +1499,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -1358,16 +1512,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -1375,12 +1529,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 3; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1390,6 +1543,8 @@ public java.lang.String getLabelsOrThrow( public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1399,6 +1554,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locationId. */ @java.lang.Override @@ -1407,14 +1563,15 @@ public java.lang.String getLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } } /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1424,16 +1581,15 @@ public java.lang.String getLocationId() {
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -1444,6 +1600,8 @@ public java.lang.String getLocationId() { public static final int ALTERNATIVE_LOCATION_ID_FIELD_NUMBER = 5; private volatile java.lang.Object alternativeLocationId_; /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1453,6 +1611,7 @@ public java.lang.String getLocationId() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alternativeLocationId. */ @java.lang.Override @@ -1461,14 +1620,15 @@ public java.lang.String getAlternativeLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; } } /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1478,16 +1638,15 @@ public java.lang.String getAlternativeLocationId() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alternativeLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -1498,6 +1657,8 @@ public java.lang.String getAlternativeLocationId() { public static final int REDIS_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object redisVersion_; /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1509,6 +1670,7 @@ public java.lang.String getAlternativeLocationId() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The redisVersion. */ @java.lang.Override @@ -1517,14 +1679,15 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1536,16 +1699,15 @@ public java.lang.String getRedisVersion() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -1556,6 +1718,8 @@ public java.lang.String getRedisVersion() { public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 9; private volatile java.lang.Object reservedIpRange_; /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1568,6 +1732,7 @@ public java.lang.String getRedisVersion() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ @java.lang.Override @@ -1576,14 +1741,15 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1596,16 +1762,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1616,6 +1781,8 @@ public java.lang.String getReservedIpRange() { public static final int SECONDARY_IP_RANGE_FIELD_NUMBER = 30; private volatile java.lang.Object secondaryIpRange_; /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1625,6 +1792,7 @@ public java.lang.String getReservedIpRange() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The secondaryIpRange. */ @java.lang.Override @@ -1633,14 +1801,15 @@ public java.lang.String getSecondaryIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; } } /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1650,16 +1819,15 @@ public java.lang.String getSecondaryIpRange() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for secondaryIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -1670,12 +1838,15 @@ public java.lang.String getSecondaryIpRange() { public static final int HOST_FIELD_NUMBER = 10; private volatile java.lang.Object host_; /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -1684,30 +1855,30 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -1718,11 +1889,14 @@ public java.lang.String getHost() { public static final int PORT_FIELD_NUMBER = 11; private int port_; /** + * + * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -1733,6 +1907,8 @@ public int getPort() { public static final int CURRENT_LOCATION_ID_FIELD_NUMBER = 12; private volatile java.lang.Object currentLocationId_; /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1740,6 +1916,7 @@ public int getPort() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The currentLocationId. */ @java.lang.Override @@ -1748,14 +1925,15 @@ public java.lang.String getCurrentLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; } } /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1763,16 +1941,15 @@ public java.lang.String getCurrentLocationId() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for currentLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -1783,11 +1960,15 @@ public java.lang.String getCurrentLocationId() { public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1795,11 +1976,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1807,11 +1992,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1821,39 +2009,55 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 14; private int state_; /** + * + * *
    * Output only. The current state of this instance.
    * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.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 current state of this instance.
    * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.redis.v1.Instance.State getState() { + @java.lang.Override + public com.google.cloud.redis.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1.Instance.State result = + com.google.cloud.redis.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 15; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -1862,30 +2066,30 @@ 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. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.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 { @@ -1894,21 +2098,22 @@ public java.lang.String getStatusMessage() { } public static final int REDIS_CONFIGS_FIELD_NUMBER = 16; + private static final class RedisConfigsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_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.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> redisConfigs_; + + private com.google.protobuf.MapField redisConfigs_; + private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); @@ -1920,6 +2125,8 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -1937,24 +2144,25 @@ public int getRedisConfigsCount() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsRedisConfigs( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetRedisConfigs().getMap().containsKey(key); } - /** - * Use {@link #getRedisConfigsMap()} instead. - */ + /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -1972,14 +2180,16 @@ public java.util.Map getRedisConfigs() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -1997,19 +2207,21 @@ public java.util.Map getRedisConfigsMap() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2027,15 +2239,15 @@ public java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getRedisConfigsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2045,38 +2257,52 @@ public java.lang.String getRedisConfigsOrThrow( public static final int TIER_FIELD_NUMBER = 17; private int tier_; /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tier. */ - @java.lang.Override public com.google.cloud.redis.v1.Instance.Tier getTier() { + @java.lang.Override + public com.google.cloud.redis.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1.Instance.Tier result = + com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result; } public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 18; private int memorySizeGb_; /** + * + * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeGb. */ @java.lang.Override @@ -2087,6 +2313,8 @@ public int getMemorySizeGb() { public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 20; private volatile java.lang.Object authorizedNetwork_; /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2095,6 +2323,7 @@ public int getMemorySizeGb() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authorizedNetwork. */ @java.lang.Override @@ -2103,14 +2332,15 @@ public java.lang.String getAuthorizedNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; } } /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2119,16 +2349,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for authorizedNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -2139,6 +2368,8 @@ public java.lang.String getAuthorizedNetwork() { public static final int PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER = 21; private volatile java.lang.Object persistenceIamIdentity_; /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2148,6 +2379,7 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The persistenceIamIdentity. */ @java.lang.Override @@ -2156,14 +2388,15 @@ public java.lang.String getPersistenceIamIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; } } /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2173,16 +2406,15 @@ public java.lang.String getPersistenceIamIdentity() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for persistenceIamIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString - getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -2193,35 +2425,50 @@ public java.lang.String getPersistenceIamIdentity() { public static final int CONNECT_MODE_FIELD_NUMBER = 22; private int connectMode_; /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override public int getConnectModeValue() { + @java.lang.Override + public int getConnectModeValue() { return connectMode_; } /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectMode. */ - @java.lang.Override public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() { + @java.lang.Override + public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ConnectMode result = com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); + com.google.cloud.redis.v1.Instance.ConnectMode result = + com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); return result == null ? com.google.cloud.redis.v1.Instance.ConnectMode.UNRECOGNIZED : result; } public static final int AUTH_ENABLED_FIELD_NUMBER = 23; private boolean authEnabled_; /** + * + * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -2229,6 +2476,7 @@ public java.lang.String getPersistenceIamIdentity() {
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authEnabled. */ @java.lang.Override @@ -2239,101 +2487,140 @@ public boolean getAuthEnabled() { public static final int SERVER_CA_CERTS_FIELD_NUMBER = 25; private java.util.List serverCaCerts_; /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getServerCaCertsList() { return serverCaCerts_; } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getServerCaCertsOrBuilderList() { return serverCaCerts_; } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getServerCaCertsCount() { return serverCaCerts_.size(); } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index) { return serverCaCerts_.get(index); } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( - int index) { + public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index) { return serverCaCerts_.get(index); } public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 26; private int transitEncryptionMode_; /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override public int getTransitEncryptionModeValue() { + @java.lang.Override + public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitEncryptionMode. */ - @java.lang.Override public com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode() { + @java.lang.Override + public com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); - return result == null ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = + com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED + : result; } public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 27; private com.google.cloud.redis.v1.MaintenancePolicy maintenancePolicy_; /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maintenancePolicy field is set. */ @java.lang.Override @@ -2341,25 +2628,36 @@ public boolean hasMaintenancePolicy() { return maintenancePolicy_ != null; } /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maintenancePolicy. */ @java.lang.Override public com.google.cloud.redis.v1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + return maintenancePolicy_ == null + ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { @@ -2369,12 +2667,17 @@ public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicy public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 28; private com.google.cloud.redis.v1.MaintenanceSchedule maintenanceSchedule_; /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the maintenanceSchedule field is set. */ @java.lang.Override @@ -2382,25 +2685,36 @@ public boolean hasMaintenanceSchedule() { return maintenanceSchedule_ != null; } /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The maintenanceSchedule. */ @java.lang.Override public com.google.cloud.redis.v1.MaintenanceSchedule getMaintenanceSchedule() { - return maintenanceSchedule_ == null ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; + return maintenanceSchedule_ == null + ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { @@ -2410,6 +2724,8 @@ public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceSche public static final int REPLICA_COUNT_FIELD_NUMBER = 31; private int replicaCount_; /** + * + * *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -2419,6 +2735,7 @@ public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceSche
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ @java.lang.Override @@ -2429,66 +2746,87 @@ public int getReplicaCount() { public static final int NODES_FIELD_NUMBER = 32; private java.util.List nodes_; /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getNodesOrBuilderList() { return nodes_; } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.redis.v1.NodeInfo getNodes(int index) { return nodes_.get(index); } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index) { return nodes_.get(index); } public static final int READ_ENDPOINT_FIELD_NUMBER = 33; private volatile java.lang.Object readEndpoint_; /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2497,6 +2835,7 @@ public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpoint. */ @java.lang.Override @@ -2505,14 +2844,15 @@ public java.lang.String getReadEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; } } /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2521,16 +2861,15 @@ public java.lang.String getReadEndpoint() {
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for readEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getReadEndpointBytes() { + public com.google.protobuf.ByteString getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -2541,12 +2880,15 @@ public java.lang.String getReadEndpoint() { public static final int READ_ENDPOINT_PORT_FIELD_NUMBER = 34; private int readEndpointPort_; /** + * + * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpointPort. */ @java.lang.Override @@ -2557,31 +2899,47 @@ public int getReadEndpointPort() { public static final int READ_REPLICAS_MODE_FIELD_NUMBER = 35; private int readReplicasMode_; /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override public int getReadReplicasModeValue() { + @java.lang.Override + public int getReadReplicasModeValue() { return readReplicasMode_; } /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readReplicasMode. */ - @java.lang.Override public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() { + @java.lang.Override + public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1.Instance.ReadReplicasMode result = + com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null + ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2593,20 +2951,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); } @@ -2637,12 +2990,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, statusMessage_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRedisConfigs(), - RedisConfigsDefaultEntryHolder.defaultEntry, - 16); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 16); if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(17, tier_); } @@ -2655,7 +3004,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, persistenceIamIdentity_); } - if (connectMode_ != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + if (connectMode_ + != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(22, connectMode_); } if (authEnabled_ != false) { @@ -2664,7 +3014,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < serverCaCerts_.size(); i++) { output.writeMessage(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ != com.google.cloud.redis.v1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { + if (transitEncryptionMode_ + != com.google.cloud.redis.v1.Instance.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { @@ -2688,7 +3041,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (readEndpointPort_ != 0) { output.writeInt32(34, readEndpointPort_); } - if (readReplicasMode_ != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { + if (readReplicasMode_ + != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(35, readReplicasMode_); } unknownFields.writeTo(output); @@ -2706,15 +3061,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - 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(3, labels__); + 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(3, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); @@ -2732,40 +3087,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentLocationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currentLocationId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } if (state_ != com.google.cloud.redis.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, statusMessage_); } - for (java.util.Map.Entry entry - : internalGetRedisConfigs().getMap().entrySet()) { - com.google.protobuf.MapEntry - redisConfigs__ = RedisConfigsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, redisConfigs__); + for (java.util.Map.Entry entry : + internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry redisConfigs__ = + RedisConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, redisConfigs__); } if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, tier_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, tier_); } if (memorySizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, memorySizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, memorySizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, authorizedNetwork_); @@ -2773,51 +3123,48 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, persistenceIamIdentity_); } - if (connectMode_ != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(22, connectMode_); + if (connectMode_ + != com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, connectMode_); } if (authEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, authEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, authEnabled_); } for (int i = 0; i < serverCaCerts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, serverCaCerts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ != com.google.cloud.redis.v1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(26, transitEncryptionMode_); + if (transitEncryptionMode_ + != com.google.cloud.redis.v1.Instance.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getMaintenancePolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaintenancePolicy()); } if (maintenanceSchedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getMaintenanceSchedule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMaintenanceSchedule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, secondaryIpRange_); } if (replicaCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(31, replicaCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(31, replicaCount_); } for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, nodes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, readEndpoint_); } if (readEndpointPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(34, readEndpointPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(34, readEndpointPort_); } - if (readReplicasMode_ != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(35, readReplicasMode_); + if (readReplicasMode_ + != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, readReplicasMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2827,76 +3174,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.redis.v1.Instance)) { return super.equals(obj); } com.google.cloud.redis.v1.Instance other = (com.google.cloud.redis.v1.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getLocationId() - .equals(other.getLocationId())) return false; - if (!getAlternativeLocationId() - .equals(other.getAlternativeLocationId())) return false; - if (!getRedisVersion() - .equals(other.getRedisVersion())) return false; - if (!getReservedIpRange() - .equals(other.getReservedIpRange())) return false; - if (!getSecondaryIpRange() - .equals(other.getSecondaryIpRange())) return false; - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; - if (!getCurrentLocationId() - .equals(other.getCurrentLocationId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLocationId().equals(other.getLocationId())) return false; + if (!getAlternativeLocationId().equals(other.getAlternativeLocationId())) return false; + if (!getRedisVersion().equals(other.getRedisVersion())) return false; + if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; + if (!getSecondaryIpRange().equals(other.getSecondaryIpRange())) return false; + if (!getHost().equals(other.getHost())) return false; + if (getPort() != other.getPort()) return false; + if (!getCurrentLocationId().equals(other.getCurrentLocationId())) 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 (state_ != other.state_) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (!internalGetRedisConfigs().equals( - other.internalGetRedisConfigs())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; if (tier_ != other.tier_) return false; - if (getMemorySizeGb() - != other.getMemorySizeGb()) return false; - if (!getAuthorizedNetwork() - .equals(other.getAuthorizedNetwork())) return false; - if (!getPersistenceIamIdentity() - .equals(other.getPersistenceIamIdentity())) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; + if (!getPersistenceIamIdentity().equals(other.getPersistenceIamIdentity())) return false; if (connectMode_ != other.connectMode_) return false; - if (getAuthEnabled() - != other.getAuthEnabled()) return false; - if (!getServerCaCertsList() - .equals(other.getServerCaCertsList())) return false; + if (getAuthEnabled() != other.getAuthEnabled()) return false; + if (!getServerCaCertsList().equals(other.getServerCaCertsList())) return false; if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; if (hasMaintenancePolicy()) { - if (!getMaintenancePolicy() - .equals(other.getMaintenancePolicy())) return false; + if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; } if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false; if (hasMaintenanceSchedule()) { - if (!getMaintenanceSchedule() - .equals(other.getMaintenanceSchedule())) return false; - } - if (getReplicaCount() - != other.getReplicaCount()) return false; - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getReadEndpoint() - .equals(other.getReadEndpoint())) return false; - if (getReadEndpointPort() - != other.getReadEndpointPort()) return false; + if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) return false; + } + if (getReplicaCount() != other.getReplicaCount()) return false; + if (!getNodesList().equals(other.getNodesList())) return false; + if (!getReadEndpoint().equals(other.getReadEndpoint())) return false; + if (getReadEndpointPort() != other.getReadEndpointPort()) return false; if (readReplicasMode_ != other.readReplicasMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2956,8 +3278,7 @@ public int hashCode() { hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER; hash = (53 * hash) + connectMode_; hash = (37 * hash) + AUTH_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAuthEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAuthEnabled()); if (getServerCaCertsCount() > 0) { hash = (37 * hash) + SERVER_CA_CERTS_FIELD_NUMBER; hash = (53 * hash) + getServerCaCertsList().hashCode(); @@ -2989,144 +3310,150 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.Instance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.Instance parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.redis.v1.Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.Instance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.Instance 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.redis.v1.Instance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.Instance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.Instance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Memorystore for Redis instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.Instance) com.google.cloud.redis.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetLabels(); case 16: return internalGetRedisConfigs(); 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 internalGetMutableLabels(); case 16: return internalGetMutableRedisConfigs(); 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.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.Instance.class, com.google.cloud.redis.v1.Instance.Builder.class); + com.google.cloud.redis.v1.Instance.class, + com.google.cloud.redis.v1.Instance.Builder.class); } // Construct using com.google.cloud.redis.v1.Instance.newBuilder() @@ -3134,18 +3461,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getServerCaCertsFieldBuilder(); getNodesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3231,9 +3558,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_Instance_descriptor; } @java.lang.Override @@ -3322,38 +3649,39 @@ public com.google.cloud.redis.v1.Instance buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.Instance) { - return mergeFrom((com.google.cloud.redis.v1.Instance)other); + return mergeFrom((com.google.cloud.redis.v1.Instance) other); } else { super.mergeFrom(other); return this; @@ -3370,8 +3698,7 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); @@ -3413,8 +3740,7 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { statusMessage_ = other.statusMessage_; onChanged(); } - internalGetMutableRedisConfigs().mergeFrom( - other.internalGetRedisConfigs()); + internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); if (other.tier_ != 0) { setTierValue(other.getTierValue()); } @@ -3453,9 +3779,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { serverCaCertsBuilder_ = null; serverCaCerts_ = other.serverCaCerts_; bitField0_ = (bitField0_ & ~0x00000004); - serverCaCertsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServerCaCertsFieldBuilder() : null; + serverCaCertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServerCaCertsFieldBuilder() + : null; } else { serverCaCertsBuilder_.addAllMessages(other.serverCaCerts_); } @@ -3491,9 +3818,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000008); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -3537,10 +3865,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3553,13 +3884,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -3568,6 +3899,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3580,15 +3913,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -3596,6 +3928,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3608,20 +3942,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3634,15 +3970,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3655,16 +3994,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -3672,18 +4011,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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; @@ -3692,20 +4033,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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 { @@ -3713,75 +4055,81 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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; } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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.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(); @@ -3793,28 +4141,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
@@ -3822,11 +4172,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
@@ -3834,16 +4185,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
@@ -3851,12 +4203,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 3; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3864,69 +4215,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - - 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 locationId_ = ""; /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -3936,13 +4286,13 @@ public Builder putAllLabels(
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; @@ -3951,6 +4301,8 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -3960,15 +4312,14 @@ public java.lang.String getLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -3976,6 +4327,8 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -3985,20 +4338,22 @@ public java.lang.String getLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId( - java.lang.String value) { + public Builder setLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4008,15 +4363,18 @@ public Builder setLocationId(
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4026,16 +4384,16 @@ public Builder clearLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -4043,6 +4401,8 @@ public Builder setLocationIdBytes( private java.lang.Object alternativeLocationId_ = ""; /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4052,13 +4412,13 @@ public Builder setLocationIdBytes(
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alternativeLocationId. */ public java.lang.String getAlternativeLocationId() { java.lang.Object ref = alternativeLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; @@ -4067,6 +4427,8 @@ public java.lang.String getAlternativeLocationId() { } } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4076,15 +4438,14 @@ public java.lang.String getAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alternativeLocationId. */ - public com.google.protobuf.ByteString - getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -4092,6 +4453,8 @@ public java.lang.String getAlternativeLocationId() { } } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4101,20 +4464,22 @@ public java.lang.String getAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationId( - java.lang.String value) { + public Builder setAlternativeLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + alternativeLocationId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4124,15 +4489,18 @@ public Builder setAlternativeLocationId(
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAlternativeLocationId() { - + alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId(); onChanged(); return this; } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4142,16 +4510,16 @@ public Builder clearAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alternativeLocationId_ = value; onChanged(); return this; @@ -4159,6 +4527,8 @@ public Builder setAlternativeLocationIdBytes( private java.lang.Object redisVersion_ = ""; /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4170,13 +4540,13 @@ public Builder setAlternativeLocationIdBytes(
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -4185,6 +4555,8 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4196,15 +4568,14 @@ public java.lang.String getRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -4212,6 +4583,8 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4223,20 +4596,22 @@ public java.lang.String getRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion( - java.lang.String value) { + public Builder setRedisVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4248,15 +4623,18 @@ public Builder setRedisVersion(
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4268,16 +4646,16 @@ public Builder clearRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = value; onChanged(); return this; @@ -4285,6 +4663,8 @@ public Builder setRedisVersionBytes( private java.lang.Object reservedIpRange_ = ""; /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4297,13 +4677,13 @@ public Builder setRedisVersionBytes(
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -4312,6 +4692,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4324,15 +4706,14 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -4340,6 +4721,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4352,20 +4735,22 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange( - java.lang.String value) { + public Builder setReservedIpRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4378,15 +4763,18 @@ public Builder setReservedIpRange(
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4399,16 +4787,16 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; @@ -4416,6 +4804,8 @@ public Builder setReservedIpRangeBytes( private java.lang.Object secondaryIpRange_ = ""; /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4425,13 +4815,13 @@ public Builder setReservedIpRangeBytes(
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The secondaryIpRange. */ public java.lang.String getSecondaryIpRange() { java.lang.Object ref = secondaryIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; @@ -4440,6 +4830,8 @@ public java.lang.String getSecondaryIpRange() { } } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4449,15 +4841,14 @@ public java.lang.String getSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for secondaryIpRange. */ - public com.google.protobuf.ByteString - getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -4465,6 +4856,8 @@ public java.lang.String getSecondaryIpRange() { } } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4474,20 +4867,22 @@ public java.lang.String getSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRange( - java.lang.String value) { + public Builder setSecondaryIpRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secondaryIpRange_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4497,15 +4892,18 @@ public Builder setSecondaryIpRange(
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSecondaryIpRange() { - + secondaryIpRange_ = getDefaultInstance().getSecondaryIpRange(); onChanged(); return this; } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4515,16 +4913,16 @@ public Builder clearSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryIpRange_ = value; onChanged(); return this; @@ -4532,19 +4930,21 @@ public Builder setSecondaryIpRangeBytes( private java.lang.Object host_ = ""; /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -4553,21 +4953,22 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -4575,69 +4976,79 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { + public Builder setHost(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      * clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { + public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_ ; + private int port_; /** + * + * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -4645,30 +5056,36 @@ public int getPort() { return port_; } /** + * + * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -4676,6 +5093,8 @@ public Builder clearPort() { private java.lang.Object currentLocationId_ = ""; /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4683,13 +5102,13 @@ public Builder clearPort() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The currentLocationId. */ public java.lang.String getCurrentLocationId() { java.lang.Object ref = currentLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; @@ -4698,6 +5117,8 @@ public java.lang.String getCurrentLocationId() { } } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4705,15 +5126,14 @@ public java.lang.String getCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for currentLocationId. */ - public com.google.protobuf.ByteString - getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -4721,6 +5141,8 @@ public java.lang.String getCurrentLocationId() { } } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4728,20 +5150,22 @@ public java.lang.String getCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationId( - java.lang.String value) { + public Builder setCurrentLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currentLocationId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4749,15 +5173,18 @@ public Builder setCurrentLocationId(
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCurrentLocationId() { - + currentLocationId_ = getDefaultInstance().getCurrentLocationId(); onChanged(); return this; } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4765,16 +5192,16 @@ public Builder clearCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currentLocationId_ = value; onChanged(); return this; @@ -4782,39 +5209,58 @@ public Builder setCurrentLocationIdBytes( 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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4830,14 +5276,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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(); @@ -4848,17 +5297,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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; } @@ -4870,11 +5323,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4888,48 +5345,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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_; @@ -4937,51 +5410,73 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The current state of this instance.
      * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1.Instance.State result = + com.google.cloud.redis.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of this instance.
      * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -4989,21 +5484,26 @@ public Builder setState(com.google.cloud.redis.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of this instance.
      * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -5011,19 +5511,21 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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; @@ -5032,21 +5534,22 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 { @@ -5054,78 +5557,87 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> redisConfigs_; + private com.google.protobuf.MapField redisConfigs_; + private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); } return redisConfigs_; } + private com.google.protobuf.MapField - internalGetMutableRedisConfigs() { - onChanged();; + internalGetMutableRedisConfigs() { + onChanged(); + ; if (redisConfigs_ == null) { - redisConfigs_ = com.google.protobuf.MapField.newMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); + redisConfigs_ = + com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); } if (!redisConfigs_.isMutable()) { redisConfigs_ = redisConfigs_.copy(); @@ -5137,6 +5649,8 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5154,24 +5668,25 @@ public int getRedisConfigsCount() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsRedisConfigs( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetRedisConfigs().getMap().containsKey(key); } - /** - * Use {@link #getRedisConfigsMap()} instead. - */ + /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5189,14 +5704,16 @@ public java.util.Map getRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5214,19 +5731,21 @@ public java.util.Map getRedisConfigsMap() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5244,15 +5763,15 @@ public java.lang.String getRedisConfigsOrDefault(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getRedisConfigsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5260,11 +5779,12 @@ public java.lang.String getRedisConfigsOrThrow( } public Builder clearRedisConfigs() { - internalGetMutableRedisConfigs().getMutableMap() - .clear(); + internalGetMutableRedisConfigs().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5282,25 +5802,24 @@ public Builder clearRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeRedisConfigs( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableRedisConfigs().getMutableMap() - .remove(key); + public Builder removeRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRedisConfigs().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableRedisConfigs() { + public java.util.Map getMutableRedisConfigs() { return internalGetMutableRedisConfigs().getMutableMap(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5318,21 +5837,23 @@ public Builder removeRedisConfigs(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putRedisConfigs( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableRedisConfigs().getMutableMap() - .put(key, value); + internalGetMutableRedisConfigs().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5350,63 +5871,83 @@ public Builder putRedisConfigs(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllRedisConfigs( - java.util.Map values) { - internalGetMutableRedisConfigs().getMutableMap() - .putAll(values); + public Builder putAllRedisConfigs(java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap().putAll(values); return this; } private int tier_ = 0; /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tier. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1.Instance.Tier result = + com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The tier to set. * @return This builder for chaining. */ @@ -5414,33 +5955,41 @@ public Builder setTier(com.google.cloud.redis.v1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; } - private int memorySizeGb_ ; + private int memorySizeGb_; /** + * + * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeGb. */ @java.lang.Override @@ -5448,30 +5997,36 @@ public int getMemorySizeGb() { return memorySizeGb_; } /** + * + * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The memorySizeGb to set. * @return This builder for chaining. */ public Builder setMemorySizeGb(int value) { - + memorySizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMemorySizeGb() { - + memorySizeGb_ = 0; onChanged(); return this; @@ -5479,6 +6034,8 @@ public Builder clearMemorySizeGb() { private java.lang.Object authorizedNetwork_ = ""; /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5487,13 +6044,13 @@ public Builder clearMemorySizeGb() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authorizedNetwork. */ public java.lang.String getAuthorizedNetwork() { java.lang.Object ref = authorizedNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; @@ -5502,6 +6059,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5510,15 +6069,14 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for authorizedNetwork. */ - public com.google.protobuf.ByteString - getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -5526,6 +6084,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5534,20 +6094,22 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetwork( - java.lang.String value) { + public Builder setAuthorizedNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizedNetwork_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5556,15 +6118,18 @@ public Builder setAuthorizedNetwork(
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5573,16 +6138,16 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizedNetwork_ = value; onChanged(); return this; @@ -5590,6 +6155,8 @@ public Builder setAuthorizedNetworkBytes( private java.lang.Object persistenceIamIdentity_ = ""; /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5598,14 +6165,15 @@ public Builder setAuthorizedNetworkBytes(
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The persistenceIamIdentity. */ public java.lang.String getPersistenceIamIdentity() { java.lang.Object ref = persistenceIamIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; @@ -5614,6 +6182,8 @@ public java.lang.String getPersistenceIamIdentity() { } } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5622,16 +6192,16 @@ public java.lang.String getPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for persistenceIamIdentity. */ - public com.google.protobuf.ByteString - getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -5639,6 +6209,8 @@ public java.lang.String getPersistenceIamIdentity() { } } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5647,21 +6219,24 @@ public java.lang.String getPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentity( - java.lang.String value) { + public Builder setPersistenceIamIdentity(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + persistenceIamIdentity_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5670,16 +6245,20 @@ public Builder setPersistenceIamIdentity(
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPersistenceIamIdentity() { - + persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity(); onChanged(); return this; } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5688,17 +6267,18 @@ public Builder clearPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentityBytes( - com.google.protobuf.ByteString value) { + public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + persistenceIamIdentity_ = value; onChanged(); return this; @@ -5706,55 +6286,77 @@ public Builder setPersistenceIamIdentityBytes( private int connectMode_ = 0; /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override public int getConnectModeValue() { + @java.lang.Override + public int getConnectModeValue() { return connectMode_; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for connectMode to set. * @return This builder for chaining. */ public Builder setConnectModeValue(int value) { - + connectMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectMode. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ConnectMode result = com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); + com.google.cloud.redis.v1.Instance.ConnectMode result = + com.google.cloud.redis.v1.Instance.ConnectMode.valueOf(connectMode_); return result == null ? com.google.cloud.redis.v1.Instance.ConnectMode.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The connectMode to set. * @return This builder for chaining. */ @@ -5762,29 +6364,36 @@ public Builder setConnectMode(com.google.cloud.redis.v1.Instance.ConnectMode val if (value == null) { throw new NullPointerException(); } - + connectMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearConnectMode() { - + connectMode_ = 0; onChanged(); return this; } - private boolean authEnabled_ ; + private boolean authEnabled_; /** + * + * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -5792,6 +6401,7 @@ public Builder clearConnectMode() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authEnabled. */ @java.lang.Override @@ -5799,6 +6409,8 @@ public boolean getAuthEnabled() { return authEnabled_; } /** + * + * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -5806,16 +6418,19 @@ public boolean getAuthEnabled() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The authEnabled to set. * @return This builder for chaining. */ public Builder setAuthEnabled(boolean value) { - + authEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -5823,33 +6438,43 @@ public Builder setAuthEnabled(boolean value) {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAuthEnabled() { - + authEnabled_ = false; onChanged(); return this; } private java.util.List serverCaCerts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureServerCaCertsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = new java.util.ArrayList(serverCaCerts_); + serverCaCerts_ = + new java.util.ArrayList(serverCaCerts_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.TlsCertificate, com.google.cloud.redis.v1.TlsCertificate.Builder, com.google.cloud.redis.v1.TlsCertificateOrBuilder> serverCaCertsBuilder_; + com.google.cloud.redis.v1.TlsCertificate, + com.google.cloud.redis.v1.TlsCertificate.Builder, + com.google.cloud.redis.v1.TlsCertificateOrBuilder> + serverCaCertsBuilder_; /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getServerCaCertsList() { if (serverCaCertsBuilder_ == null) { @@ -5859,11 +6484,15 @@ public java.util.List getServerCaCerts } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getServerCaCertsCount() { if (serverCaCertsBuilder_ == null) { @@ -5873,11 +6502,15 @@ public int getServerCaCertsCount() { } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -5887,14 +6520,17 @@ public com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index) { } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setServerCaCerts( - int index, com.google.cloud.redis.v1.TlsCertificate value) { + public Builder setServerCaCerts(int index, com.google.cloud.redis.v1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5908,11 +6544,15 @@ public Builder setServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setServerCaCerts( int index, com.google.cloud.redis.v1.TlsCertificate.Builder builderForValue) { @@ -5926,11 +6566,15 @@ public Builder setServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addServerCaCerts(com.google.cloud.redis.v1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { @@ -5946,14 +6590,17 @@ public Builder addServerCaCerts(com.google.cloud.redis.v1.TlsCertificate value) return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addServerCaCerts( - int index, com.google.cloud.redis.v1.TlsCertificate value) { + public Builder addServerCaCerts(int index, com.google.cloud.redis.v1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5967,11 +6614,15 @@ public Builder addServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addServerCaCerts( com.google.cloud.redis.v1.TlsCertificate.Builder builderForValue) { @@ -5985,11 +6636,15 @@ public Builder addServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addServerCaCerts( int index, com.google.cloud.redis.v1.TlsCertificate.Builder builderForValue) { @@ -6003,18 +6658,21 @@ public Builder addServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllServerCaCerts( java.lang.Iterable values) { if (serverCaCertsBuilder_ == null) { ensureServerCaCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serverCaCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverCaCerts_); onChanged(); } else { serverCaCertsBuilder_.addAllMessages(values); @@ -6022,11 +6680,15 @@ public Builder addAllServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearServerCaCerts() { if (serverCaCertsBuilder_ == null) { @@ -6039,11 +6701,15 @@ public Builder clearServerCaCerts() { return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -6056,39 +6722,50 @@ public Builder removeServerCaCerts(int index) { return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1.TlsCertificate.Builder getServerCaCertsBuilder( - int index) { + public com.google.cloud.redis.v1.TlsCertificate.Builder getServerCaCertsBuilder(int index) { return getServerCaCertsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( - int index) { + public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index) { if (serverCaCertsBuilder_ == null) { - return serverCaCerts_.get(index); } else { + return serverCaCerts_.get(index); + } else { return serverCaCertsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getServerCaCertsOrBuilderList() { + public java.util.List + getServerCaCertsOrBuilderList() { if (serverCaCertsBuilder_ != null) { return serverCaCertsBuilder_.getMessageOrBuilderList(); } else { @@ -6096,45 +6773,62 @@ public com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuild } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder() { - return getServerCaCertsFieldBuilder().addBuilder( - com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); + return getServerCaCertsFieldBuilder() + .addBuilder(com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder( - int index) { - return getServerCaCertsFieldBuilder().addBuilder( - index, com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); + public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder(int index) { + return getServerCaCertsFieldBuilder() + .addBuilder(index, com.google.cloud.redis.v1.TlsCertificate.getDefaultInstance()); } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getServerCaCertsBuilderList() { + public java.util.List + getServerCaCertsBuilderList() { return getServerCaCertsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.TlsCertificate, com.google.cloud.redis.v1.TlsCertificate.Builder, com.google.cloud.redis.v1.TlsCertificateOrBuilder> + com.google.cloud.redis.v1.TlsCertificate, + com.google.cloud.redis.v1.TlsCertificate.Builder, + com.google.cloud.redis.v1.TlsCertificateOrBuilder> getServerCaCertsFieldBuilder() { if (serverCaCertsBuilder_ == null) { - serverCaCertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.TlsCertificate, com.google.cloud.redis.v1.TlsCertificate.Builder, com.google.cloud.redis.v1.TlsCertificateOrBuilder>( + serverCaCertsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.TlsCertificate, + com.google.cloud.redis.v1.TlsCertificate.Builder, + com.google.cloud.redis.v1.TlsCertificateOrBuilder>( serverCaCerts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6146,78 +6840,108 @@ public com.google.cloud.redis.v1.TlsCertificate.Builder addServerCaCertsBuilder( private int transitEncryptionMode_ = 0; /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override public int getTransitEncryptionModeValue() { + @java.lang.Override + public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for transitEncryptionMode to set. * @return This builder for chaining. */ public Builder setTransitEncryptionModeValue(int value) { - + transitEncryptionMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitEncryptionMode. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); - return result == null ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1.Instance.TransitEncryptionMode result = + com.google.cloud.redis.v1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.v1.Instance.TransitEncryptionMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The transitEncryptionMode to set. * @return This builder for chaining. */ - public Builder setTransitEncryptionMode(com.google.cloud.redis.v1.Instance.TransitEncryptionMode value) { + public Builder setTransitEncryptionMode( + com.google.cloud.redis.v1.Instance.TransitEncryptionMode value) { if (value == null) { throw new NullPointerException(); } - + transitEncryptionMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTransitEncryptionMode() { - + transitEncryptionMode_ = 0; onChanged(); return this; @@ -6225,42 +6949,61 @@ public Builder clearTransitEncryptionMode() { private com.google.cloud.redis.v1.MaintenancePolicy maintenancePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenancePolicy, com.google.cloud.redis.v1.MaintenancePolicy.Builder, com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + com.google.cloud.redis.v1.MaintenancePolicy, + com.google.cloud.redis.v1.MaintenancePolicy.Builder, + com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maintenancePolicy field is set. */ public boolean hasMaintenancePolicy() { return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maintenancePolicy. */ public com.google.cloud.redis.v1.MaintenancePolicy getMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + return maintenancePolicy_ == null + ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } else { return maintenancePolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { @@ -6276,12 +7019,16 @@ public Builder setMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolicy return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaintenancePolicy( com.google.cloud.redis.v1.MaintenancePolicy.Builder builderForValue) { @@ -6295,18 +7042,24 @@ public Builder setMaintenancePolicy( return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { if (maintenancePolicy_ != null) { maintenancePolicy_ = - com.google.cloud.redis.v1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); } else { maintenancePolicy_ = value; } @@ -6318,12 +7071,16 @@ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1.MaintenancePolic return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { @@ -6337,51 +7094,67 @@ public Builder clearMaintenancePolicy() { return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.redis.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - + onChanged(); return getMaintenancePolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { if (maintenancePolicyBuilder_ != null) { return maintenancePolicyBuilder_.getMessageOrBuilder(); } else { - return maintenancePolicy_ == null ? - com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + return maintenancePolicy_ == null + ? com.google.cloud.redis.v1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenancePolicy, com.google.cloud.redis.v1.MaintenancePolicy.Builder, com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> + com.google.cloud.redis.v1.MaintenancePolicy, + com.google.cloud.redis.v1.MaintenancePolicy.Builder, + com.google.cloud.redis.v1.MaintenancePolicyOrBuilder> getMaintenancePolicyFieldBuilder() { if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenancePolicy, com.google.cloud.redis.v1.MaintenancePolicy.Builder, com.google.cloud.redis.v1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), - getParentForChildren(), - isClean()); + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.MaintenancePolicy, + com.google.cloud.redis.v1.MaintenancePolicy.Builder, + com.google.cloud.redis.v1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); maintenancePolicy_ = null; } return maintenancePolicyBuilder_; @@ -6389,42 +7162,61 @@ public com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicy private com.google.cloud.redis.v1.MaintenanceSchedule maintenanceSchedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenanceSchedule, com.google.cloud.redis.v1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> maintenanceScheduleBuilder_; + com.google.cloud.redis.v1.MaintenanceSchedule, + com.google.cloud.redis.v1.MaintenanceSchedule.Builder, + com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> + maintenanceScheduleBuilder_; /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the maintenanceSchedule field is set. */ public boolean hasMaintenanceSchedule() { return maintenanceScheduleBuilder_ != null || maintenanceSchedule_ != null; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The maintenanceSchedule. */ public com.google.cloud.redis.v1.MaintenanceSchedule getMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { - return maintenanceSchedule_ == null ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; + return maintenanceSchedule_ == null + ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } else { return maintenanceScheduleBuilder_.getMessage(); } } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { @@ -6440,12 +7232,16 @@ public Builder setMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSched return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMaintenanceSchedule( com.google.cloud.redis.v1.MaintenanceSchedule.Builder builderForValue) { @@ -6459,18 +7255,24 @@ public Builder setMaintenanceSchedule( return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { if (maintenanceSchedule_ != null) { maintenanceSchedule_ = - com.google.cloud.redis.v1.MaintenanceSchedule.newBuilder(maintenanceSchedule_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1.MaintenanceSchedule.newBuilder(maintenanceSchedule_) + .mergeFrom(value) + .buildPartial(); } else { maintenanceSchedule_ = value; } @@ -6482,12 +7284,16 @@ public Builder mergeMaintenanceSchedule(com.google.cloud.redis.v1.MaintenanceSch return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { @@ -6501,58 +7307,77 @@ public Builder clearMaintenanceSchedule() { return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1.MaintenanceSchedule.Builder getMaintenanceScheduleBuilder() { - + onChanged(); return getMaintenanceScheduleFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { + public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { if (maintenanceScheduleBuilder_ != null) { return maintenanceScheduleBuilder_.getMessageOrBuilder(); } else { - return maintenanceSchedule_ == null ? - com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; + return maintenanceSchedule_ == null + ? com.google.cloud.redis.v1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenanceSchedule, com.google.cloud.redis.v1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> + com.google.cloud.redis.v1.MaintenanceSchedule, + com.google.cloud.redis.v1.MaintenanceSchedule.Builder, + com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder> getMaintenanceScheduleFieldBuilder() { if (maintenanceScheduleBuilder_ == null) { - maintenanceScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.MaintenanceSchedule, com.google.cloud.redis.v1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder>( - getMaintenanceSchedule(), - getParentForChildren(), - isClean()); + maintenanceScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.MaintenanceSchedule, + com.google.cloud.redis.v1.MaintenanceSchedule.Builder, + com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder>( + getMaintenanceSchedule(), getParentForChildren(), isClean()); maintenanceSchedule_ = null; } return maintenanceScheduleBuilder_; } - private int replicaCount_ ; + private int replicaCount_; /** + * + * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -6562,6 +7387,7 @@ public com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceSche
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ @java.lang.Override @@ -6569,6 +7395,8 @@ public int getReplicaCount() { return replicaCount_; } /** + * + * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -6578,16 +7406,19 @@ public int getReplicaCount() {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The replicaCount to set. * @return This builder for chaining. */ public Builder setReplicaCount(int value) { - + replicaCount_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -6597,33 +7428,42 @@ public Builder setReplicaCount(int value) {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReplicaCount() { - + replicaCount_ = 0; onChanged(); return this; } private java.util.List nodes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.NodeInfo, com.google.cloud.redis.v1.NodeInfo.Builder, com.google.cloud.redis.v1.NodeInfoOrBuilder> nodesBuilder_; + com.google.cloud.redis.v1.NodeInfo, + com.google.cloud.redis.v1.NodeInfo.Builder, + com.google.cloud.redis.v1.NodeInfoOrBuilder> + nodesBuilder_; /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { @@ -6633,11 +7473,15 @@ public java.util.List getNodesList() { } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getNodesCount() { if (nodesBuilder_ == null) { @@ -6647,11 +7491,15 @@ public int getNodesCount() { } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1.NodeInfo getNodes(int index) { if (nodesBuilder_ == null) { @@ -6661,14 +7509,17 @@ public com.google.cloud.redis.v1.NodeInfo getNodes(int index) { } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNodes( - int index, com.google.cloud.redis.v1.NodeInfo value) { + public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6682,14 +7533,17 @@ public Builder setNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNodes( - int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { + public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); @@ -6700,11 +7554,15 @@ public Builder setNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNodes(com.google.cloud.redis.v1.NodeInfo value) { if (nodesBuilder_ == null) { @@ -6720,14 +7578,17 @@ public Builder addNodes(com.google.cloud.redis.v1.NodeInfo value) { return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNodes( - int index, com.google.cloud.redis.v1.NodeInfo value) { + public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6741,14 +7602,17 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNodes( - com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { + public Builder addNodes(com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -6759,14 +7623,17 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNodes( - int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { + public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); @@ -6777,18 +7644,21 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -6796,11 +7666,15 @@ public Builder addAllNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNodes() { if (nodesBuilder_ == null) { @@ -6813,11 +7687,15 @@ public Builder clearNodes() { return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { @@ -6830,39 +7708,50 @@ public Builder removeNodes(int index) { return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1.NodeInfo.Builder getNodesBuilder( - int index) { + public com.google.cloud.redis.v1.NodeInfo.Builder getNodesBuilder(int index) { return getNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); } else { + return nodes_.get(index); + } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List + getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -6870,49 +7759,62 @@ public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder( } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); + return getNodesFieldBuilder() + .addBuilder(com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); + public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.redis.v1.NodeInfo.getDefaultInstance()); } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNodesBuilderList() { + public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.NodeInfo, com.google.cloud.redis.v1.NodeInfo.Builder, com.google.cloud.redis.v1.NodeInfoOrBuilder> + com.google.cloud.redis.v1.NodeInfo, + com.google.cloud.redis.v1.NodeInfo.Builder, + com.google.cloud.redis.v1.NodeInfoOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.NodeInfo, com.google.cloud.redis.v1.NodeInfo.Builder, com.google.cloud.redis.v1.NodeInfoOrBuilder>( - nodes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.NodeInfo, + com.google.cloud.redis.v1.NodeInfo.Builder, + com.google.cloud.redis.v1.NodeInfoOrBuilder>( + nodes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; @@ -6920,6 +7822,8 @@ public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder( private java.lang.Object readEndpoint_ = ""; /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -6928,13 +7832,13 @@ public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder(
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpoint. */ public java.lang.String getReadEndpoint() { java.lang.Object ref = readEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; @@ -6943,6 +7847,8 @@ public java.lang.String getReadEndpoint() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -6951,15 +7857,14 @@ public java.lang.String getReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for readEndpoint. */ - public com.google.protobuf.ByteString - getReadEndpointBytes() { + public com.google.protobuf.ByteString getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -6967,6 +7872,8 @@ public java.lang.String getReadEndpoint() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -6975,20 +7882,22 @@ public java.lang.String getReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpoint( - java.lang.String value) { + public Builder setReadEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + readEndpoint_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -6997,15 +7906,18 @@ public Builder setReadEndpoint(
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReadEndpoint() { - + readEndpoint_ = getDefaultInstance().getReadEndpoint(); onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7014,29 +7926,32 @@ public Builder clearReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setReadEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + readEndpoint_ = value; onChanged(); return this; } - private int readEndpointPort_ ; + private int readEndpointPort_; /** + * + * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpointPort. */ @java.lang.Override @@ -7044,32 +7959,38 @@ public int getReadEndpointPort() { return readEndpointPort_; } /** + * + * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The readEndpointPort to set. * @return This builder for chaining. */ public Builder setReadEndpointPort(int value) { - + readEndpointPort_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReadEndpointPort() { - + readEndpointPort_ = 0; onChanged(); return this; @@ -7077,51 +7998,75 @@ public Builder clearReadEndpointPort() { private int readReplicasMode_ = 0; /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override public int getReadReplicasModeValue() { + @java.lang.Override + public int getReadReplicasModeValue() { return readReplicasMode_; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for readReplicasMode to set. * @return This builder for chaining. */ public Builder setReadReplicasModeValue(int value) { - + readReplicasMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readReplicasMode. */ @java.lang.Override public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1.Instance.ReadReplicasMode result = + com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null + ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The readReplicasMode to set. * @return This builder for chaining. */ @@ -7129,28 +8074,33 @@ public Builder setReadReplicasMode(com.google.cloud.redis.v1.Instance.ReadReplic if (value == null) { throw new NullPointerException(); } - + readReplicasMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearReadReplicasMode() { - + readReplicasMode_ = 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); } @@ -7160,12 +8110,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance) private static final com.google.cloud.redis.v1.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.Instance(); } @@ -7174,16 +8124,16 @@ public static com.google.cloud.redis.v1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7198,6 +8148,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java index 59c2409c..6ff75592 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthString.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Instance AUTH string details.
  * 
* * Protobuf type {@code google.cloud.redis.v1.InstanceAuthString} */ -public final class InstanceAuthString extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InstanceAuthString extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.InstanceAuthString) InstanceAuthStringOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstanceAuthString.newBuilder() to construct. private InstanceAuthString(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstanceAuthString() { authString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstanceAuthString(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InstanceAuthString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private InstanceAuthString( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - authString_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + authString_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private InstanceAuthString( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InstanceAuthString.class, com.google.cloud.redis.v1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1.InstanceAuthString.class, + com.google.cloud.redis.v1.InstanceAuthString.Builder.class); } public static final int AUTH_STRING_FIELD_NUMBER = 1; private volatile java.lang.Object authString_; /** + * + * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; + * * @return The authString. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getAuthString() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; } } /** + * + * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; + * * @return The bytes for authString. */ @java.lang.Override - public com.google.protobuf.ByteString - getAuthStringBytes() { + public com.google.protobuf.ByteString getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authString_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getAuthString() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authString_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.InstanceAuthString)) { return super.equals(obj); } - com.google.cloud.redis.v1.InstanceAuthString other = (com.google.cloud.redis.v1.InstanceAuthString) obj; + com.google.cloud.redis.v1.InstanceAuthString other = + (com.google.cloud.redis.v1.InstanceAuthString) obj; - if (!getAuthString() - .equals(other.getAuthString())) return false; + if (!getAuthString().equals(other.getAuthString())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +226,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.InstanceAuthString 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.redis.v1.InstanceAuthString parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.InstanceAuthString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.InstanceAuthString parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.InstanceAuthString parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.InstanceAuthString parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.InstanceAuthString prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Instance AUTH string details.
    * 
* * Protobuf type {@code google.cloud.redis.v1.InstanceAuthString} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.InstanceAuthString) com.google.cloud.redis.v1.InstanceAuthStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InstanceAuthString.class, com.google.cloud.redis.v1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1.InstanceAuthString.class, + com.google.cloud.redis.v1.InstanceAuthString.Builder.class); } // Construct using com.google.cloud.redis.v1.InstanceAuthString.newBuilder() @@ -322,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_InstanceAuthString_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.redis.v1.InstanceAuthString build() { @java.lang.Override public com.google.cloud.redis.v1.InstanceAuthString buildPartial() { - com.google.cloud.redis.v1.InstanceAuthString result = new com.google.cloud.redis.v1.InstanceAuthString(this); + com.google.cloud.redis.v1.InstanceAuthString result = + new com.google.cloud.redis.v1.InstanceAuthString(this); result.authString_ = authString_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.redis.v1.InstanceAuthString buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.InstanceAuthString) { - return mergeFrom((com.google.cloud.redis.v1.InstanceAuthString)other); + return mergeFrom((com.google.cloud.redis.v1.InstanceAuthString) other); } else { super.mergeFrom(other); return this; @@ -447,18 +480,20 @@ public Builder mergeFrom( private java.lang.Object authString_ = ""; /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @return The authString. */ public java.lang.String getAuthString() { java.lang.Object ref = authString_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; @@ -467,20 +502,21 @@ public java.lang.String getAuthString() { } } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @return The bytes for authString. */ - public com.google.protobuf.ByteString - getAuthStringBytes() { + public com.google.protobuf.ByteString getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authString_ = b; return b; } else { @@ -488,61 +524,68 @@ public java.lang.String getAuthString() { } } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @param value The authString to set. * @return This builder for chaining. */ - public Builder setAuthString( - java.lang.String value) { + public Builder setAuthString(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authString_ = value; onChanged(); return this; } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @return This builder for chaining. */ public Builder clearAuthString() { - + authString_ = getDefaultInstance().getAuthString(); onChanged(); return this; } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @param value The bytes for authString to set. * @return This builder for chaining. */ - public Builder setAuthStringBytes( - com.google.protobuf.ByteString value) { + public Builder setAuthStringBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authString_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +595,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.InstanceAuthString) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.InstanceAuthString) private static final com.google.cloud.redis.v1.InstanceAuthString DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.InstanceAuthString(); } @@ -566,16 +609,16 @@ public static com.google.cloud.redis.v1.InstanceAuthString getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceAuthString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceAuthString(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceAuthString parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceAuthString(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.InstanceAuthString getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java new file mode 100644 index 00000000..44537b46 --- /dev/null +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceAuthStringOrBuilder.java @@ -0,0 +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/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface InstanceAuthStringOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.InstanceAuthString) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * + * @return The authString. + */ + java.lang.String getAuthString(); + /** + * + * + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * + * @return The bytes for authString. + */ + com.google.protobuf.ByteString getAuthStringBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java index cb958b76..47651d59 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -20,10 +38,13 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -36,32 +57,39 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -70,30 +98,31 @@ public interface InstanceOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - 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(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -102,22 +131,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -127,10 +158,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locationId. */ java.lang.String getLocationId(); /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -140,12 +174,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locationId. */ - com.google.protobuf.ByteString - getLocationIdBytes(); + com.google.protobuf.ByteString getLocationIdBytes(); /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -155,10 +191,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alternativeLocationId. */ java.lang.String getAlternativeLocationId(); /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -168,12 +207,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alternativeLocationId. */ - com.google.protobuf.ByteString - getAlternativeLocationIdBytes(); + com.google.protobuf.ByteString getAlternativeLocationIdBytes(); /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -185,10 +226,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -200,12 +244,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString - getRedisVersionBytes(); + com.google.protobuf.ByteString getRedisVersionBytes(); /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -218,10 +264,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -234,12 +283,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString - getReservedIpRangeBytes(); + com.google.protobuf.ByteString getReservedIpRangeBytes(); /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -249,10 +300,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The secondaryIpRange. */ java.lang.String getSecondaryIpRange(); /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -262,44 +316,54 @@ java.lang.String getLabelsOrThrow(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for secondaryIpRange. */ - com.google.protobuf.ByteString - getSecondaryIpRangeBytes(); + com.google.protobuf.ByteString getSecondaryIpRangeBytes(); /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    * clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); /** + * + * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ int getPort(); /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -307,10 +371,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The currentLocationId. */ java.lang.String getCurrentLocationId(); /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -318,80 +385,108 @@ java.lang.String getLabelsOrThrow(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for currentLocationId. */ - com.google.protobuf.ByteString - getCurrentLocationIdBytes(); + com.google.protobuf.ByteString getCurrentLocationIdBytes(); /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The current state of this instance.
    * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of this instance.
    * 
* - * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.redis.v1.Instance.State getState(); /** + * + * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -409,10 +504,13 @@ java.lang.String getLabelsOrThrow(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getRedisConfigsCount(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -430,17 +528,16 @@ java.lang.String getLabelsOrThrow(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsRedisConfigs( - java.lang.String key); - /** - * Use {@link #getRedisConfigsMap()} instead. + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsRedisConfigs(java.lang.String key); + /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getRedisConfigs(); + java.util.Map getRedisConfigs(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -458,11 +555,13 @@ boolean containsRedisConfigs(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getRedisConfigsMap(); + java.util.Map getRedisConfigsMap(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -480,15 +579,18 @@ boolean containsRedisConfigs(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getRedisConfigsOrDefault( + java.lang.String getRedisConfigsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -506,42 +608,54 @@ java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getRedisConfigsOrThrow( - java.lang.String key); + java.lang.String getRedisConfigsOrThrow(java.lang.String key); /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tier. */ com.google.cloud.redis.v1.Instance.Tier getTier(); /** + * + * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeGb. */ int getMemorySizeGb(); /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -550,10 +664,13 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -562,12 +679,14 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString - getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString getAuthorizedNetworkBytes(); /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -577,10 +696,13 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The persistenceIamIdentity. */ java.lang.String getPersistenceIamIdentity(); /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -590,33 +712,45 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for persistenceIamIdentity. */ - com.google.protobuf.ByteString - getPersistenceIamIdentityBytes(); + com.google.protobuf.ByteString getPersistenceIamIdentityBytes(); /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for connectMode. */ int getConnectModeValue(); /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectMode. */ com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode(); /** + * + * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -624,136 +758,195 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authEnabled. */ boolean getAuthEnabled(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getServerCaCertsList(); + java.util.List getServerCaCertsList(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.redis.v1.TlsCertificate getServerCaCerts(int index); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getServerCaCertsCount(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getServerCaCertsOrBuilderList(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( - int index); + com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index); /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for transitEncryptionMode. */ int getTransitEncryptionModeValue(); /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitEncryptionMode. */ com.google.cloud.redis.v1.Instance.TransitEncryptionMode getTransitEncryptionMode(); /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maintenancePolicy field is set. */ boolean hasMaintenancePolicy(); /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maintenancePolicy. */ com.google.cloud.redis.v1.MaintenancePolicy getMaintenancePolicy(); /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.redis.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the maintenanceSchedule field is set. */ boolean hasMaintenanceSchedule(); /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The maintenanceSchedule. */ com.google.cloud.redis.v1.MaintenanceSchedule getMaintenanceSchedule(); /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder(); /** + * + * *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -763,55 +956,75 @@ com.google.cloud.redis.v1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ int getReplicaCount(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getNodesList(); + java.util.List getNodesList(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.redis.v1.NodeInfo getNodes(int index); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getNodesCount(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getNodesOrBuilderList(); + java.util.List getNodesOrBuilderList(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder( - int index); + com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index); /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -820,10 +1033,13 @@ com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpoint. */ java.lang.String getReadEndpoint(); /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -832,37 +1048,50 @@ com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for readEndpoint. */ - com.google.protobuf.ByteString - getReadEndpointBytes(); + com.google.protobuf.ByteString getReadEndpointBytes(); /** + * + * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpointPort. */ int getReadEndpointPort(); /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for readReplicasMode. */ int getReadReplicasModeValue(); /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readReplicasMode. */ com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode(); diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java index cb57d9a0..2a627e01 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} */ -public final class ListInstancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesRequest) ListInstancesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListInstancesRequest( 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesRequest.class, com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1.ListInstancesRequest.class, + com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ 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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -168,6 +198,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -178,12 +209,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -192,30 +226,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; } } /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * 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 { @@ -224,6 +258,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -273,19 +306,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.redis.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.ListInstancesRequest other = (com.google.cloud.redis.v1.ListInstancesRequest) obj; + com.google.cloud.redis.v1.ListInstancesRequest other = + (com.google.cloud.redis.v1.ListInstancesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,118 +339,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesRequest 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.redis.v1.ListInstancesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ListInstancesRequest) com.google.cloud.redis.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesRequest.class, com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1.ListInstancesRequest.class, + com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.ListInstancesRequest.newBuilder() @@ -427,16 +467,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(); @@ -450,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -471,7 +510,8 @@ public com.google.cloud.redis.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.redis.v1.ListInstancesRequest buildPartial() { - com.google.cloud.redis.v1.ListInstancesRequest result = new com.google.cloud.redis.v1.ListInstancesRequest(this); + com.google.cloud.redis.v1.ListInstancesRequest result = + new com.google.cloud.redis.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -483,38 +523,39 @@ public com.google.cloud.redis.v1.ListInstancesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.redis.v1.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.redis.v1.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -565,20 +606,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.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; @@ -587,22 +632,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -610,67 +658,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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_; /** + * + * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -681,6 +744,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -688,6 +752,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -698,16 +764,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; } /** + * + * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -718,10 +787,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -729,19 +799,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; @@ -750,21 +822,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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 { @@ -772,64 +845,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
      * 
* * 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); } @@ -839,12 +919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesRequest) private static final com.google.cloud.redis.v1.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesRequest(); } @@ -853,16 +933,16 @@ public static com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -877,6 +957,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java index 765de276..c1e36250 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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(); /** + * + * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -42,29 +69,35 @@ public interface ListInstancesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java index 5b84de1f..b5fa83b4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} */ -public final class ListInstancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesResponse) ListInstancesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instances_.add( + input.readMessage( + com.google.cloud.redis.v1.Instance.parser(), extensionRegistry)); + break; } - instances_.add( - input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -107,22 +127,27 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesResponse.class, com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1.ListInstancesResponse.class, + com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -143,6 +168,8 @@ public java.util.List getInstancesList() {
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -159,11 +186,13 @@ public java.util.List getInstancesList() {
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -184,6 +213,8 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -204,6 +235,8 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -220,20 +253,22 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
-      int index) {
+  public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -242,30 +277,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; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -276,34 +311,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. */ @@ -311,20 +354,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; @@ -336,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 { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -357,8 +402,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -379,19 +423,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.redis.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.redis.v1.ListInstancesResponse other = (com.google.cloud.redis.v1.ListInstancesResponse) obj; + com.google.cloud.redis.v1.ListInstancesResponse other = + (com.google.cloud.redis.v1.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) 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; } @@ -418,118 +460,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesResponse 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.redis.v1.ListInstancesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ListInstancesResponse) com.google.cloud.redis.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ListInstancesResponse.class, com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1.ListInstancesResponse.class, + com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.redis.v1.ListInstancesResponse.newBuilder() @@ -537,17 +588,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) { getInstancesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -586,7 +637,8 @@ public com.google.cloud.redis.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.redis.v1.ListInstancesResponse buildPartial() { - com.google.cloud.redis.v1.ListInstancesResponse result = new com.google.cloud.redis.v1.ListInstancesResponse(this); + com.google.cloud.redis.v1.ListInstancesResponse result = + new com.google.cloud.redis.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -611,38 +663,39 @@ public com.google.cloud.redis.v1.ListInstancesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.redis.v1.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.redis.v1.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -650,7 +703,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.ListInstancesResponse other) { - if (other == com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -669,9 +723,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1.ListInstancesResponse other) instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstancesFieldBuilder() : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -719,21 +774,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.redis.v1.Instance, + com.google.cloud.redis.v1.Instance.Builder, + com.google.cloud.redis.v1.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -757,6 +819,8 @@ public java.util.List getInstancesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -780,6 +844,8 @@ public int getInstancesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -803,6 +869,8 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -818,8 +886,7 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public Builder setInstances(
-        int index, com.google.cloud.redis.v1.Instance value) {
+    public Builder setInstances(int index, com.google.cloud.redis.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -833,6 +900,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -860,6 +929,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -889,6 +960,8 @@ public Builder addInstances(com.google.cloud.redis.v1.Instance value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -904,8 +977,7 @@ public Builder addInstances(com.google.cloud.redis.v1.Instance value) {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public Builder addInstances(
-        int index, com.google.cloud.redis.v1.Instance value) {
+    public Builder addInstances(int index, com.google.cloud.redis.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -919,6 +991,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -934,8 +1008,7 @@ public Builder addInstances(
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public Builder addInstances(
-        com.google.cloud.redis.v1.Instance.Builder builderForValue) {
+    public Builder addInstances(com.google.cloud.redis.v1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -946,6 +1019,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -973,6 +1048,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -992,8 +1069,7 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -1001,6 +1077,8 @@ public Builder addAllInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1027,6 +1105,8 @@ public Builder clearInstances() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1053,6 +1133,8 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1068,11 +1150,12 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(
-        int index) {
+    public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1088,14 +1171,16 @@ public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
-        int index) {
+    public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);  } else {
+        return instances_.get(index);
+      } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1111,8 +1196,8 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesOrBuilderList() {
+    public java.util.List
+        getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1120,6 +1205,8 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1136,10 +1223,12 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
     public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder().addBuilder(
-          com.google.cloud.redis.v1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder()
+          .addBuilder(com.google.cloud.redis.v1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1155,12 +1244,13 @@ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(
-        int index) {
-      return getInstancesFieldBuilder().addBuilder(
-          index, com.google.cloud.redis.v1.Instance.getDefaultInstance());
+    public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(int index) {
+      return getInstancesFieldBuilder()
+          .addBuilder(index, com.google.cloud.redis.v1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1176,20 +1266,22 @@ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(
      *
      * repeated .google.cloud.redis.v1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesBuilderList() {
+    public java.util.List getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> 
+            com.google.cloud.redis.v1.Instance,
+            com.google.cloud.redis.v1.Instance.Builder,
+            com.google.cloud.redis.v1.InstanceOrBuilder>
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>(
-                instances_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        instancesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.redis.v1.Instance,
+                com.google.cloud.redis.v1.Instance.Builder,
+                com.google.cloud.redis.v1.InstanceOrBuilder>(
+                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1197,19 +1289,21 @@ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1218,21 +1312,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1240,98 +1335,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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. */ @@ -1339,80 +1451,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() { @@ -1422,28 +1544,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); } @@ -1453,12 +1577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesResponse) private static final com.google.cloud.redis.v1.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesResponse(); } @@ -1467,16 +1591,16 @@ public static com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1491,6 +1615,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java index 6dc4774a..ed73fccc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -23,9 +41,10 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
-  java.util.List 
-      getInstancesList();
+  java.util.List getInstancesList();
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -43,6 +62,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   com.google.cloud.redis.v1.Instance getInstances(int index);
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -60,6 +81,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   int getInstancesCount();
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -75,9 +98,10 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
-  java.util.List 
-      getInstancesOrBuilderList();
+  java.util.List getInstancesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -93,69 +117,83 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.redis.v1.Instance instances = 1;
    */
-  com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
-      int index);
+  com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java index 71502136..8d4b360b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * This location metadata represents additional configuration options for a
  * given location where a Redis instance may be created. All fields are output
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.LocationMetadata}
  */
-public final class LocationMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.LocationMetadata)
     LocationMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LocationMetadata.newBuilder() to construct.
   private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LocationMetadata() {
-  }
+
+  private LocationMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LocationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LocationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,26 +72,31 @@ private LocationMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              availableZones_ = com.google.protobuf.MapField.newMapField(
-                  AvailableZonesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                availableZones_ =
+                    com.google.protobuf.MapField.newMapField(
+                        AvailableZonesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  availableZones__ =
+                      input.readMessage(
+                          AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              availableZones_
+                  .getMutableMap()
+                  .put(availableZones__.getKey(), availableZones__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            availableZones__ = input.readMessage(
-                AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            availableZones_.getMutableMap().put(
-                availableZones__.getKey(), availableZones__.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) {
@@ -83,54 +104,60 @@ private LocationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_LocationMetadata_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 1:
         return internalGetAvailableZones();
       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.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.LocationMetadata.class, com.google.cloud.redis.v1.LocationMetadata.Builder.class);
+            com.google.cloud.redis.v1.LocationMetadata.class,
+            com.google.cloud.redis.v1.LocationMetadata.Builder.class);
   }
 
   public static final int AVAILABLE_ZONES_FIELD_NUMBER = 1;
+
   private static final class AvailableZonesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> defaultEntry =
+            java.lang.String, com.google.cloud.redis.v1.ZoneMetadata>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.redis.v1.ZoneMetadata.getDefaultInstance());
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> availableZones_;
+                .newDefaultInstance(
+                    com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+                        .internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor,
+                    com.google.protobuf.WireFormat.FieldType.STRING,
+                    "",
+                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                    com.google.cloud.redis.v1.ZoneMetadata.getDefaultInstance());
+  }
+
   private com.google.protobuf.MapField
-  internalGetAvailableZones() {
+      availableZones_;
+
+  private com.google.protobuf.MapField
+      internalGetAvailableZones() {
     if (availableZones_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           AvailableZonesDefaultEntryHolder.defaultEntry);
@@ -142,6 +169,8 @@ public int getAvailableZonesCount() {
     return internalGetAvailableZones().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -149,24 +178,27 @@ public int getAvailableZonesCount() {
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsAvailableZones( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAvailableZones(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAvailableZones().getMap().containsKey(key); } - /** - * Use {@link #getAvailableZonesMap()} instead. - */ + /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAvailableZones() { + public java.util.Map + getAvailableZones() { return getAvailableZonesMap(); } /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -174,14 +206,18 @@ public java.util.Map g
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.util.Map getAvailableZonesMap() { + public java.util.Map + getAvailableZonesMap() { return internalGetAvailableZones().getMap(); } /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -189,19 +225,23 @@ public java.util.Map g
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, - com.google.cloud.redis.v1.ZoneMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.redis.v1.ZoneMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAvailableZones().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -209,13 +249,15 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -225,6 +267,7 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,14 +279,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAvailableZones(), - AvailableZonesDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAvailableZones(), AvailableZonesDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @@ -253,15 +291,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetAvailableZones().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetAvailableZones().getMap().entrySet()) { com.google.protobuf.MapEntry - availableZones__ = AvailableZonesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, availableZones__); + availableZones__ = + AvailableZonesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, availableZones__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,15 +310,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.redis.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.redis.v1.LocationMetadata other = (com.google.cloud.redis.v1.LocationMetadata) obj; + com.google.cloud.redis.v1.LocationMetadata other = + (com.google.cloud.redis.v1.LocationMetadata) obj; - if (!internalGetAvailableZones().equals( - other.internalGetAvailableZones())) return false; + if (!internalGetAvailableZones().equals(other.internalGetAvailableZones())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,97 +339,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.LocationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.LocationMetadata 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.redis.v1.LocationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * This location metadata represents additional configuration options for a
    * given location where a Redis instance may be created. All fields are output
@@ -400,43 +446,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1.LocationMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.LocationMetadata)
       com.google.cloud.redis.v1.LocationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetAvailableZones();
         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 1:
           return internalGetMutableAvailableZones();
         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.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.LocationMetadata.class, com.google.cloud.redis.v1.LocationMetadata.Builder.class);
+              com.google.cloud.redis.v1.LocationMetadata.class,
+              com.google.cloud.redis.v1.LocationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.LocationMetadata.newBuilder()
@@ -444,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();
@@ -462,9 +507,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_LocationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -483,7 +528,8 @@ public com.google.cloud.redis.v1.LocationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.LocationMetadata buildPartial() {
-      com.google.cloud.redis.v1.LocationMetadata result = new com.google.cloud.redis.v1.LocationMetadata(this);
+      com.google.cloud.redis.v1.LocationMetadata result =
+          new com.google.cloud.redis.v1.LocationMetadata(this);
       int from_bitField0_ = bitField0_;
       result.availableZones_ = internalGetAvailableZones();
       result.availableZones_.makeImmutable();
@@ -495,38 +541,39 @@ public com.google.cloud.redis.v1.LocationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.LocationMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1.LocationMetadata)other);
+        return mergeFrom((com.google.cloud.redis.v1.LocationMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,8 +582,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.redis.v1.LocationMetadata other) {
       if (other == com.google.cloud.redis.v1.LocationMetadata.getDefaultInstance()) return this;
-      internalGetMutableAvailableZones().mergeFrom(
-          other.internalGetAvailableZones());
+      internalGetMutableAvailableZones().mergeFrom(other.internalGetAvailableZones());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -565,24 +611,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> availableZones_;
     private com.google.protobuf.MapField
-    internalGetAvailableZones() {
+        availableZones_;
+
+    private com.google.protobuf.MapField
+        internalGetAvailableZones() {
       if (availableZones_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       return availableZones_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableAvailableZones() {
-      onChanged();;
+        internalGetMutableAvailableZones() {
+      onChanged();
+      ;
       if (availableZones_ == null) {
-        availableZones_ = com.google.protobuf.MapField.newMapField(
-            AvailableZonesDefaultEntryHolder.defaultEntry);
+        availableZones_ =
+            com.google.protobuf.MapField.newMapField(AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       if (!availableZones_.isMutable()) {
         availableZones_ = availableZones_.copy();
@@ -594,6 +644,8 @@ public int getAvailableZonesCount() {
       return internalGetAvailableZones().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -601,24 +653,27 @@ public int getAvailableZonesCount() {
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsAvailableZones( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAvailableZones(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAvailableZones().getMap().containsKey(key); } - /** - * Use {@link #getAvailableZonesMap()} instead. - */ + /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAvailableZones() { + public java.util.Map + getAvailableZones() { return getAvailableZonesMap(); } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -626,14 +681,18 @@ public java.util.Map g
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.util.Map getAvailableZonesMap() { + public java.util.Map + getAvailableZonesMap() { return internalGetAvailableZones().getMap(); } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -641,19 +700,23 @@ public java.util.Map g
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, - com.google.cloud.redis.v1.ZoneMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.redis.v1.ZoneMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAvailableZones().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -661,13 +724,15 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -677,11 +742,12 @@ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( } public Builder clearAvailableZones() { - internalGetMutableAvailableZones().getMutableMap() - .clear(); + internalGetMutableAvailableZones().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -689,25 +755,26 @@ public Builder clearAvailableZones() {
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeAvailableZones( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAvailableZones().getMutableMap() - .remove(key); + public Builder removeAvailableZones(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAvailableZones().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableAvailableZones() { + getMutableAvailableZones() { return internalGetMutableAvailableZones().getMutableMap(); } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -715,21 +782,25 @@ public Builder removeAvailableZones(
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAvailableZones( - java.lang.String key, - com.google.cloud.redis.v1.ZoneMetadata value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.redis.v1.ZoneMetadata value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAvailableZones().getMutableMap() - .put(key, value); + internalGetMutableAvailableZones().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -737,18 +808,18 @@ public Builder putAvailableZones(
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllAvailableZones( java.util.Map values) { - internalGetMutableAvailableZones().getMutableMap() - .putAll(values); + internalGetMutableAvailableZones().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); } @@ -758,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.LocationMetadata) private static final com.google.cloud.redis.v1.LocationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.LocationMetadata(); } @@ -772,16 +843,16 @@ public static com.google.cloud.redis.v1.LocationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -796,6 +867,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java index c9196e36..bc4a7231 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface LocationMetadataOrBuilder extends +public interface LocationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -15,10 +33,14 @@ public interface LocationMetadataOrBuilder extends
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getAvailableZonesCount(); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -26,17 +48,17 @@ public interface LocationMetadataOrBuilder extends
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsAvailableZones( - java.lang.String key); - /** - * Use {@link #getAvailableZonesMap()} instead. + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsAvailableZones(java.lang.String key); + /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAvailableZones(); + java.util.Map getAvailableZones(); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -44,11 +66,14 @@ boolean containsAvailableZones(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.Map - getAvailableZonesMap(); + java.util.Map getAvailableZonesMap(); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -56,15 +81,19 @@ boolean containsAvailableZones(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( + com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.redis.v1.ZoneMetadata defaultValue); + com.google.cloud.redis.v1.ZoneMetadata defaultValue); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -72,9 +101,9 @@ com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( - java.lang.String key); + com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java index ba19d058..45744e00 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicy.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Maintenance policy for an instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1.MaintenancePolicy} */ -public final class MaintenancePolicy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.MaintenancePolicy) MaintenancePolicyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MaintenancePolicy.newBuilder() to construct. private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MaintenancePolicy() { description_ = ""; weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private MaintenancePolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MaintenancePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MaintenancePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +72,63 @@ private MaintenancePolicy( 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(); - } + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (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 18: + { + 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: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + description_ = s; + break; } - weeklyMaintenanceWindow_.add( - input.readMessage(com.google.cloud.redis.v1.WeeklyMaintenanceWindow.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + weeklyMaintenanceWindow_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + weeklyMaintenanceWindow_.add( + input.readMessage( + com.google.cloud.redis.v1.WeeklyMaintenanceWindow.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,8 +136,7 @@ private MaintenancePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); @@ -120,27 +145,34 @@ private MaintenancePolicy( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.MaintenancePolicy.class, com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1.MaintenancePolicy.class, + com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the policy 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 @@ -148,11 +180,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the policy 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 @@ -160,11 +196,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the policy 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() { @@ -174,11 +213,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -186,11 +229,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -198,11 +245,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -212,12 +262,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -226,30 +279,30 @@ 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; } } /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -258,76 +311,99 @@ public java.lang.String getDescription() { } public static final int WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER = 4; - private java.util.List weeklyMaintenanceWindow_; + private java.util.List + weeklyMaintenanceWindow_; /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getWeeklyMaintenanceWindowList() { + public java.util.List + getWeeklyMaintenanceWindowList() { return weeklyMaintenanceWindow_; } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getWeeklyMaintenanceWindowOrBuilderList() { return weeklyMaintenanceWindow_; } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getWeeklyMaintenanceWindowCount() { return weeklyMaintenanceWindow_.size(); } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { return weeklyMaintenanceWindow_.get(index); } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( - int index) { + public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { return weeklyMaintenanceWindow_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +415,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -363,19 +438,18 @@ 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 (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, weeklyMaintenanceWindow_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, weeklyMaintenanceWindow_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,27 +459,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.redis.v1.MaintenancePolicy)) { return super.equals(obj); } - com.google.cloud.redis.v1.MaintenancePolicy other = (com.google.cloud.redis.v1.MaintenancePolicy) obj; + com.google.cloud.redis.v1.MaintenancePolicy other = + (com.google.cloud.redis.v1.MaintenancePolicy) obj; 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 (!getDescription() - .equals(other.getDescription())) return false; - if (!getWeeklyMaintenanceWindowList() - .equals(other.getWeeklyMaintenanceWindowList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,118 +508,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenancePolicy 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.redis.v1.MaintenancePolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenancePolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.MaintenancePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.MaintenancePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.MaintenancePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Maintenance policy for an instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1.MaintenancePolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.MaintenancePolicy) com.google.cloud.redis.v1.MaintenancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.MaintenancePolicy.class, com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1.MaintenancePolicy.class, + com.google.cloud.redis.v1.MaintenancePolicy.Builder.class); } // Construct using com.google.cloud.redis.v1.MaintenancePolicy.newBuilder() @@ -555,17 +636,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) { getWeeklyMaintenanceWindowFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +674,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_MaintenancePolicy_descriptor; } @java.lang.Override @@ -614,7 +695,8 @@ public com.google.cloud.redis.v1.MaintenancePolicy build() { @java.lang.Override public com.google.cloud.redis.v1.MaintenancePolicy buildPartial() { - com.google.cloud.redis.v1.MaintenancePolicy result = new com.google.cloud.redis.v1.MaintenancePolicy(this); + com.google.cloud.redis.v1.MaintenancePolicy result = + new com.google.cloud.redis.v1.MaintenancePolicy(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -629,7 +711,8 @@ public com.google.cloud.redis.v1.MaintenancePolicy buildPartial() { result.description_ = description_; if (weeklyMaintenanceWindowBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = + java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); bitField0_ = (bitField0_ & ~0x00000001); } result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindow_; @@ -644,38 +727,39 @@ public com.google.cloud.redis.v1.MaintenancePolicy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.MaintenancePolicy) { - return mergeFrom((com.google.cloud.redis.v1.MaintenancePolicy)other); + return mergeFrom((com.google.cloud.redis.v1.MaintenancePolicy) other); } else { super.mergeFrom(other); return this; @@ -712,9 +796,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1.MaintenancePolicy other) { weeklyMaintenanceWindowBuilder_ = null; weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; bitField0_ = (bitField0_ & ~0x00000001); - weeklyMaintenanceWindowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWeeklyMaintenanceWindowFieldBuilder() : null; + weeklyMaintenanceWindowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWeeklyMaintenanceWindowFieldBuilder() + : null; } else { weeklyMaintenanceWindowBuilder_.addAllMessages(other.weeklyMaintenanceWindow_); } @@ -748,43 +833,63 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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) { @@ -800,14 +905,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy 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(); @@ -818,17 +926,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the policy 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; } @@ -840,11 +952,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy 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) { @@ -858,48 +974,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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_; @@ -907,39 +1039,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 time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -955,14 +1106,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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(); @@ -973,17 +1127,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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; } @@ -995,11 +1153,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1013,48 +1175,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> 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_; @@ -1062,19 +1240,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1083,21 +1263,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1105,84 +1286,102 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } - private java.util.List weeklyMaintenanceWindow_ = - java.util.Collections.emptyList(); + private java.util.List + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + private void ensureWeeklyMaintenanceWindowIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = new java.util.ArrayList(weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = + new java.util.ArrayList( + weeklyMaintenanceWindow_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> weeklyMaintenanceWindowBuilder_; + com.google.cloud.redis.v1.WeeklyMaintenanceWindow, + com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> + weeklyMaintenanceWindowBuilder_; /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getWeeklyMaintenanceWindowList() { + public java.util.List + getWeeklyMaintenanceWindowList() { if (weeklyMaintenanceWindowBuilder_ == null) { return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); } else { @@ -1190,13 +1389,17 @@ public java.util.List getWeek } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getWeeklyMaintenanceWindowCount() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1206,13 +1409,17 @@ public int getWeeklyMaintenanceWindowCount() { } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1222,13 +1429,17 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWin } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { @@ -1245,13 +1456,17 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1265,15 +1480,20 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addWeeklyMaintenanceWindow(com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { + public Builder addWeeklyMaintenanceWindow( + com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { if (weeklyMaintenanceWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1287,13 +1507,17 @@ public Builder addWeeklyMaintenanceWindow(com.google.cloud.redis.v1.WeeklyMainte return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow value) { @@ -1310,13 +1534,17 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addWeeklyMaintenanceWindow( com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1330,13 +1558,17 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1350,20 +1582,23 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllWeeklyMaintenanceWindow( java.lang.Iterable values) { if (weeklyMaintenanceWindowBuilder_ == null) { ensureWeeklyMaintenanceWindowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, weeklyMaintenanceWindow_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeklyMaintenanceWindow_); onChanged(); } else { weeklyMaintenanceWindowBuilder_.addAllMessages(values); @@ -1371,13 +1606,17 @@ public Builder addAllWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearWeeklyMaintenanceWindow() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1390,13 +1629,17 @@ public Builder clearWeeklyMaintenanceWindow() { return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeWeeklyMaintenanceWindow(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1409,45 +1652,58 @@ public Builder removeWeeklyMaintenanceWindow(int index) { return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder getWeeklyMaintenanceWindowBuilder( - int index) { + public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder + getWeeklyMaintenanceWindowBuilder(int index) { return getWeeklyMaintenanceWindowFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( - int index) { + public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { - return weeklyMaintenanceWindow_.get(index); } else { + return weeklyMaintenanceWindow_.get(index); + } else { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getWeeklyMaintenanceWindowOrBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowOrBuilderList() { if (weeklyMaintenanceWindowBuilder_ != null) { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilderList(); } else { @@ -1455,51 +1711,71 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaint } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder() { - return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( - com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder() { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder(com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder( - int index) { - return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( - index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder(int index) { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getWeeklyMaintenanceWindowBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowBuilderList() { return getWeeklyMaintenanceWindowFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> + com.google.cloud.redis.v1.WeeklyMaintenanceWindow, + com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder> getWeeklyMaintenanceWindowFieldBuilder() { if (weeklyMaintenanceWindowBuilder_ == null) { - weeklyMaintenanceWindowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder>( + weeklyMaintenanceWindowBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.WeeklyMaintenanceWindow, + com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder>( weeklyMaintenanceWindow_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1508,9 +1784,9 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder addWeeklyMainte } return weeklyMaintenanceWindowBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1520,12 +1796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.MaintenancePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.MaintenancePolicy) private static final com.google.cloud.redis.v1.MaintenancePolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.MaintenancePolicy(); } @@ -1534,16 +1810,16 @@ public static com.google.cloud.redis.v1.MaintenancePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenancePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenancePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1558,6 +1834,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.MaintenancePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java index c57ef74c..575bcf00 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenancePolicyOrBuilder.java @@ -1,138 +1,201 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface MaintenancePolicyOrBuilder extends +public interface MaintenancePolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.MaintenancePolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time when the policy 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 when the policy 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 when the policy 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 when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getWeeklyMaintenanceWindowList(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.redis.v1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getWeeklyMaintenanceWindowCount(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getWeeklyMaintenanceWindowOrBuilderList(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java index f550043d..e6626a35 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceSchedule.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
  * populated.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.MaintenanceSchedule}
  */
-public final class MaintenanceSchedule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MaintenanceSchedule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.MaintenanceSchedule)
     MaintenanceScheduleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MaintenanceSchedule.newBuilder() to construct.
   private MaintenanceSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MaintenanceSchedule() {
-  }
+
+  private MaintenanceSchedule() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MaintenanceSchedule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MaintenanceSchedule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,57 +69,63 @@ private MaintenanceSchedule(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
-            }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
-            }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 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 24: {
-
-            canReschedule_ = input.readBool();
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (scheduleDeadlineTime_ != null) {
-              subBuilder = scheduleDeadlineTime_.toBuilder();
+              break;
             }
-            scheduleDeadlineTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(scheduleDeadlineTime_);
-              scheduleDeadlineTime_ = subBuilder.buildPartial();
+          case 24:
+            {
+              canReschedule_ = input.readBool();
+              break;
             }
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (scheduleDeadlineTime_ != null) {
+                subBuilder = scheduleDeadlineTime_.toBuilder();
+              }
+              scheduleDeadlineTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(scheduleDeadlineTime_);
+                scheduleDeadlineTime_ = 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) {
@@ -111,34 +133,40 @@ private MaintenanceSchedule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.MaintenanceSchedule.class, com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
+            com.google.cloud.redis.v1.MaintenanceSchedule.class,
+            com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
   }
 
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -146,11 +174,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -158,11 +190,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -172,11 +207,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -184,11 +223,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -196,11 +239,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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() { @@ -210,29 +256,38 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int CAN_RESCHEDULE_FIELD_NUMBER = 3; private boolean canReschedule_; /** + * + * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1/cloud_redis.proto;l=576 + * + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1/cloud_redis.proto;l=576 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated public boolean getCanReschedule() { + @java.lang.Deprecated + public boolean getCanReschedule() { return canReschedule_; } public static final int SCHEDULE_DEADLINE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp scheduleDeadlineTime_; /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the scheduleDeadlineTime field is set. */ @java.lang.Override @@ -240,25 +295,36 @@ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTime_ != null; } /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The scheduleDeadlineTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleDeadlineTime() { - return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleDeadlineTime_; } /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { @@ -266,6 +332,7 @@ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,8 +344,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -301,20 +367,17 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (canReschedule_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, canReschedule_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, canReschedule_); } if (scheduleDeadlineTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getScheduleDeadlineTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScheduleDeadlineTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -324,29 +387,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.redis.v1.MaintenanceSchedule)) { return super.equals(obj); } - com.google.cloud.redis.v1.MaintenanceSchedule other = (com.google.cloud.redis.v1.MaintenanceSchedule) obj; + com.google.cloud.redis.v1.MaintenanceSchedule other = + (com.google.cloud.redis.v1.MaintenanceSchedule) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (getCanReschedule() - != other.getCanReschedule()) return false; + if (getCanReschedule() != other.getCanReschedule()) return false; if (hasScheduleDeadlineTime() != other.hasScheduleDeadlineTime()) return false; if (hasScheduleDeadlineTime()) { - if (!getScheduleDeadlineTime() - .equals(other.getScheduleDeadlineTime())) return false; + if (!getScheduleDeadlineTime().equals(other.getScheduleDeadlineTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -368,8 +428,7 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + CAN_RESCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanReschedule()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanReschedule()); if (hasScheduleDeadlineTime()) { hash = (37 * hash) + SCHEDULE_DEADLINE_TIME_FIELD_NUMBER; hash = (53 * hash) + getScheduleDeadlineTime().hashCode(); @@ -379,97 +438,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenanceSchedule 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.redis.v1.MaintenanceSchedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.MaintenanceSchedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.MaintenanceSchedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.MaintenanceSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.MaintenanceSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
    * populated.
@@ -477,21 +543,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1.MaintenanceSchedule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.MaintenanceSchedule)
       com.google.cloud.redis.v1.MaintenanceScheduleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_MaintenanceSchedule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.MaintenanceSchedule.class, com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
+              com.google.cloud.redis.v1.MaintenanceSchedule.class,
+              com.google.cloud.redis.v1.MaintenanceSchedule.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.MaintenanceSchedule.newBuilder()
@@ -499,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();
@@ -536,9 +603,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
@@ -557,7 +624,8 @@ public com.google.cloud.redis.v1.MaintenanceSchedule build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.MaintenanceSchedule buildPartial() {
-      com.google.cloud.redis.v1.MaintenanceSchedule result = new com.google.cloud.redis.v1.MaintenanceSchedule(this);
+      com.google.cloud.redis.v1.MaintenanceSchedule result =
+          new com.google.cloud.redis.v1.MaintenanceSchedule(this);
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
       } else {
@@ -582,38 +650,39 @@ public com.google.cloud.redis.v1.MaintenanceSchedule buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.MaintenanceSchedule) {
-        return mergeFrom((com.google.cloud.redis.v1.MaintenanceSchedule)other);
+        return mergeFrom((com.google.cloud.redis.v1.MaintenanceSchedule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -665,24 +734,35 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        startTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -693,11 +773,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -713,14 +796,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -731,17 +816,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -753,11 +841,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -771,48 +862,59 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -820,24 +922,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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() { @@ -848,11 +961,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -868,14 +984,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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(); @@ -886,17 +1004,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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; } @@ -908,11 +1029,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -926,97 +1050,120 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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_; } - private boolean canReschedule_ ; + private boolean canReschedule_; /** + * + * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1/cloud_redis.proto;l=576 + * + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1/cloud_redis.proto;l=576 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated public boolean getCanReschedule() { + @java.lang.Deprecated + public boolean getCanReschedule() { return canReschedule_; } /** + * + * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1/cloud_redis.proto;l=576 + * + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1/cloud_redis.proto;l=576 * @param value The canReschedule to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setCanReschedule(boolean value) { - + @java.lang.Deprecated + public Builder setCanReschedule(boolean value) { + canReschedule_ = value; onChanged(); return this; } /** + * + * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1/cloud_redis.proto;l=576 + * + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1/cloud_redis.proto;l=576 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearCanReschedule() { - + @java.lang.Deprecated + public Builder clearCanReschedule() { + canReschedule_ = false; onChanged(); return this; @@ -1024,42 +1171,61 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp scheduleDeadlineTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleDeadlineTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleDeadlineTimeBuilder_; /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the scheduleDeadlineTime field is set. */ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTimeBuilder_ != null || scheduleDeadlineTime_ != null; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The scheduleDeadlineTime. */ public com.google.protobuf.Timestamp getScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { - return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleDeadlineTime_; } else { return scheduleDeadlineTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1075,15 +1241,18 @@ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setScheduleDeadlineTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleDeadlineTimeBuilder_ == null) { scheduleDeadlineTime_ = builderForValue.build(); onChanged(); @@ -1094,18 +1263,24 @@ public Builder setScheduleDeadlineTime( return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { if (scheduleDeadlineTime_ != null) { scheduleDeadlineTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_) + .mergeFrom(value) + .buildPartial(); } else { scheduleDeadlineTime_ = value; } @@ -1117,12 +1292,16 @@ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1136,58 +1315,74 @@ public Builder clearScheduleDeadlineTime() { return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getScheduleDeadlineTimeBuilder() { - + onChanged(); return getScheduleDeadlineTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { if (scheduleDeadlineTimeBuilder_ != null) { return scheduleDeadlineTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleDeadlineTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleDeadlineTime_; } } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.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> getScheduleDeadlineTimeFieldBuilder() { if (scheduleDeadlineTimeBuilder_ == null) { - scheduleDeadlineTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduleDeadlineTime(), - getParentForChildren(), - isClean()); + scheduleDeadlineTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleDeadlineTime(), getParentForChildren(), isClean()); scheduleDeadlineTime_ = null; } return scheduleDeadlineTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1197,12 +1392,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.MaintenanceSchedule) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.MaintenanceSchedule) private static final com.google.cloud.redis.v1.MaintenanceSchedule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.MaintenanceSchedule(); } @@ -1211,16 +1406,16 @@ public static com.google.cloud.redis.v1.MaintenanceSchedule getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceSchedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenanceSchedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceSchedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1235,6 +1430,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.MaintenanceSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java index 86bb0393..5be9680e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/MaintenanceScheduleOrBuilder.java @@ -1,105 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface MaintenanceScheduleOrBuilder extends +public interface MaintenanceScheduleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.MaintenanceSchedule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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(); /** + * + * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1/cloud_redis.proto;l=576 + * + * @deprecated google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1/cloud_redis.proto;l=576 * @return The canReschedule. */ - @java.lang.Deprecated boolean getCanReschedule(); + @java.lang.Deprecated + boolean getCanReschedule(); /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the scheduleDeadlineTime field is set. */ boolean hasScheduleDeadlineTime(); /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The scheduleDeadlineTime. */ com.google.protobuf.Timestamp getScheduleDeadlineTime(); /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java index 729e470f..3b78009b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Node specific properties.
  * 
* * Protobuf type {@code google.cloud.redis.v1.NodeInfo} */ -public final class NodeInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NodeInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.NodeInfo) NodeInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NodeInfo.newBuilder() to construct. private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NodeInfo() { id_ = ""; zone_ = ""; @@ -26,16 +44,15 @@ private NodeInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NodeInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private NodeInfo( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - zone_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + zone_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private NodeInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.NodeInfo.class, com.google.cloud.redis.v1.NodeInfo.Builder.class); + com.google.cloud.redis.v1.NodeInfo.class, + com.google.cloud.redis.v1.NodeInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -149,11 +173,14 @@ public java.lang.String getId() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ @java.lang.Override @@ -162,29 +189,29 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -193,6 +220,7 @@ public java.lang.String getZone() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +232,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -235,17 +262,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.redis.v1.NodeInfo)) { return super.equals(obj); } com.google.cloud.redis.v1.NodeInfo other = (com.google.cloud.redis.v1.NodeInfo) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getZone() - .equals(other.getZone())) return false; + if (!getId().equals(other.getId())) return false; + if (!getZone().equals(other.getZone())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,118 +291,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.NodeInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.NodeInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.NodeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.NodeInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.redis.v1.NodeInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.NodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.NodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.NodeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.NodeInfo 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.redis.v1.NodeInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.NodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.NodeInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.NodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.NodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.NodeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Node specific properties.
    * 
* * Protobuf type {@code google.cloud.redis.v1.NodeInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.NodeInfo) com.google.cloud.redis.v1.NodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.NodeInfo.class, com.google.cloud.redis.v1.NodeInfo.Builder.class); + com.google.cloud.redis.v1.NodeInfo.class, + com.google.cloud.redis.v1.NodeInfo.Builder.class); } // Construct using com.google.cloud.redis.v1.NodeInfo.newBuilder() @@ -385,16 +418,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_NodeInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_NodeInfo_descriptor; } @java.lang.Override @@ -438,38 +470,39 @@ public com.google.cloud.redis.v1.NodeInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.NodeInfo) { - return mergeFrom((com.google.cloud.redis.v1.NodeInfo)other); + return mergeFrom((com.google.cloud.redis.v1.NodeInfo) other); } else { super.mergeFrom(other); return this; @@ -517,18 +550,20 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -537,20 +572,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -558,54 +594,61 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -613,18 +656,20 @@ public Builder setIdBytes( private java.lang.Object zone_ = ""; /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -633,20 +678,21 @@ public java.lang.String getZone() { } } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -654,61 +700,68 @@ public java.lang.String getZone() { } } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone( - java.lang.String value) { + public Builder setZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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 +771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.NodeInfo) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.NodeInfo) private static final com.google.cloud.redis.v1.NodeInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.NodeInfo(); } @@ -732,16 +785,16 @@ public static com.google.cloud.redis.v1.NodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +809,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.NodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java index 2d60fde9..0949b29f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfoOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface NodeInfoOrBuilder extends +public interface NodeInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.NodeInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ java.lang.String getZone(); /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ - com.google.protobuf.ByteString - getZoneBytes(); + com.google.protobuf.ByteString getZoneBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java index ceef6588..666a6b76 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Represents the v1 metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ 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(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusDetail_ = s; + break; + } + case 48: + { + cancelRequested_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,39 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OperationMetadata.class, com.google.cloud.redis.v1.OperationMetadata.Builder.class); + com.google.cloud.redis.v1.OperationMetadata.class, + com.google.cloud.redis.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +190,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -172,6 +205,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Creation timestamp.
    * 
@@ -186,11 +221,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +236,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -210,6 +251,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * End timestamp.
    * 
@@ -224,11 +267,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Operation target.
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -237,29 +283,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; } } /** + * + * *
    * Operation target.
    * 
* * string target = 3; + * * @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 { @@ -270,11 +316,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Operation verb.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -283,29 +332,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; } } /** + * + * *
    * Operation verb.
    * 
* * string verb = 4; + * * @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 { @@ -316,11 +365,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Operation status details.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ @java.lang.Override @@ -329,29 +381,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Operation status details.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -362,11 +414,14 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -377,11 +432,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -390,29 +448,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; } } /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @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 { @@ -421,6 +479,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,8 +491,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -465,12 +523,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -482,8 +538,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -496,33 +551,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.redis.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.redis.v1.OperationMetadata other = (com.google.cloud.redis.v1.OperationMetadata) obj; + com.google.cloud.redis.v1.OperationMetadata other = + (com.google.cloud.redis.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) 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 (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -549,8 +598,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -558,118 +606,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.OperationMetadata 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.redis.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the v1 metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.OperationMetadata) com.google.cloud.redis.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OperationMetadata.class, com.google.cloud.redis.v1.OperationMetadata.Builder.class); + com.google.cloud.redis.v1.OperationMetadata.class, + com.google.cloud.redis.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.redis.v1.OperationMetadata.newBuilder() @@ -677,16 +734,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(); @@ -716,9 +772,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -737,7 +793,8 @@ public com.google.cloud.redis.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.redis.v1.OperationMetadata buildPartial() { - com.google.cloud.redis.v1.OperationMetadata result = new com.google.cloud.redis.v1.OperationMetadata(this); + com.google.cloud.redis.v1.OperationMetadata result = + new com.google.cloud.redis.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -761,38 +818,39 @@ public com.google.cloud.redis.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.redis.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.redis.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -857,34 +915,47 @@ 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_; /** + * + * *
      * Creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @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(); } } /** + * + * *
      * Creation timestamp.
      * 
@@ -905,14 +976,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - 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(); @@ -923,6 +995,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Creation timestamp.
      * 
@@ -933,7 +1007,7 @@ 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; } @@ -945,6 +1019,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Creation timestamp.
      * 
@@ -963,6 +1039,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Creation timestamp.
      * 
@@ -970,11 +1048,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Creation timestamp.
      * 
@@ -985,11 +1065,14 @@ 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_; } } /** + * + * *
      * Creation timestamp.
      * 
@@ -997,14 +1080,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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_; @@ -1012,24 +1098,33 @@ 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_; /** + * + * *
      * End timestamp.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * End timestamp.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1040,6 +1135,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * End timestamp.
      * 
@@ -1060,14 +1157,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * End timestamp.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - 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(); @@ -1078,6 +1176,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * End timestamp.
      * 
@@ -1088,7 +1188,7 @@ 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; } @@ -1100,6 +1200,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * End timestamp.
      * 
@@ -1118,6 +1220,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * End timestamp.
      * 
@@ -1125,11 +1229,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * End timestamp.
      * 
@@ -1140,11 +1246,12 @@ 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_; } } /** + * + * *
      * End timestamp.
      * 
@@ -1152,14 +1259,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1167,18 +1277,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Operation target.
      * 
* * string target = 3; + * * @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; @@ -1187,20 +1299,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Operation target.
      * 
* * string target = 3; + * * @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 { @@ -1208,54 +1321,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Operation target.
      * 
* * string target = 3; + * * @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; } /** + * + * *
      * Operation target.
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Operation target.
      * 
* * string target = 3; + * * @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; @@ -1263,18 +1383,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Operation verb.
      * 
* * string verb = 4; + * * @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; @@ -1283,20 +1405,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Operation verb.
      * 
* * string verb = 4; + * * @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 { @@ -1304,54 +1427,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Operation verb.
      * 
* * string verb = 4; + * * @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; } /** + * + * *
      * Operation verb.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Operation verb.
      * 
* * string verb = 4; + * * @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; @@ -1359,18 +1489,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Operation status details.
      * 
* * string status_detail = 5; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1379,20 +1511,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Operation status details.
      * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1400,66 +1533,76 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Operation status details.
      * 
* * string status_detail = 5; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Operation status details.
      * 
* * string status_detail = 5; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Operation status details.
      * 
* * string status_detail = 5; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -1467,30 +1610,36 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1498,18 +1647,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @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; @@ -1518,20 +1669,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @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 { @@ -1539,61 +1691,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @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; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1603,12 +1762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OperationMetadata) private static final com.google.cloud.redis.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.OperationMetadata(); } @@ -1617,16 +1776,16 @@ public static com.google.cloud.redis.v1.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + 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; @@ -1641,6 +1800,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java index e357d8df..4797c12f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Creation timestamp.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * End timestamp.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * End timestamp.
    * 
@@ -62,92 +94,115 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Operation target.
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Operation target.
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Operation verb.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Operation verb.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Operation status details.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Operation status details.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java index 4fac4561..7c0d00c5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * The output content
  * 
* * Protobuf type {@code google.cloud.redis.v1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,29 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.redis.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.redis.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.redis.v1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.redis.v1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.redis.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destinationCase_ = 1; - 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) { @@ -80,34 +98,39 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OutputConfig.class, com.google.cloud.redis.v1.OutputConfig.Builder.class); + com.google.cloud.redis.v1.OutputConfig.class, + com.google.cloud.redis.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -123,29 +146,34 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -153,21 +181,26 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; + return (com.google.cloud.redis.v1.GcsDestination) destination_; } return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
@@ -177,12 +210,13 @@ public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; + return (com.google.cloud.redis.v1.GcsDestination) destination_; } return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +228,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1.GcsDestination) destination_); } @@ -209,8 +242,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.redis.v1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.redis.v1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -220,7 +254,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1.OutputConfig)) { return super.equals(obj); @@ -230,8 +264,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -260,118 +293,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.OutputConfig 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.redis.v1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 output content
    * 
* * Protobuf type {@code google.cloud.redis.v1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.OutputConfig) com.google.cloud.redis.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OutputConfig.class, com.google.cloud.redis.v1.OutputConfig.Builder.class); + com.google.cloud.redis.v1.OutputConfig.class, + com.google.cloud.redis.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1.OutputConfig.newBuilder() @@ -379,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(); @@ -398,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; } @java.lang.Override @@ -419,7 +460,8 @@ public com.google.cloud.redis.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.redis.v1.OutputConfig buildPartial() { - com.google.cloud.redis.v1.OutputConfig result = new com.google.cloud.redis.v1.OutputConfig(this); + com.google.cloud.redis.v1.OutputConfig result = + new com.google.cloud.redis.v1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -436,38 +478,39 @@ public com.google.cloud.redis.v1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.OutputConfig) { - return mergeFrom((com.google.cloud.redis.v1.OutputConfig)other); + return mergeFrom((com.google.cloud.redis.v1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -477,13 +520,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1.OutputConfig other) { if (other == com.google.cloud.redis.v1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -513,12 +558,12 @@ public Builder mergeFrom( } return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -528,15 +573,20 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, com.google.cloud.redis.v1.GcsDestination.Builder, com.google.cloud.redis.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.redis.v1.GcsDestination, + com.google.cloud.redis.v1.GcsDestination.Builder, + com.google.cloud.redis.v1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -544,11 +594,14 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -566,6 +619,8 @@ public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -586,6 +641,8 @@ public Builder setGcsDestination(com.google.cloud.redis.v1.GcsDestination value) return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -604,6 +661,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -612,10 +671,13 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.redis.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.redis.v1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.redis.v1.GcsDestination.newBuilder((com.google.cloud.redis.v1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.redis.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.redis.v1.GcsDestination.newBuilder( + (com.google.cloud.redis.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -631,6 +693,8 @@ public Builder mergeGcsDestination(com.google.cloud.redis.v1.GcsDestination valu return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -654,6 +718,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -664,6 +730,8 @@ public com.google.cloud.redis.v1.GcsDestination.Builder getGcsDestinationBuilder return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -682,6 +750,8 @@ public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -689,26 +759,32 @@ public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, com.google.cloud.redis.v1.GcsDestination.Builder, com.google.cloud.redis.v1.GcsDestinationOrBuilder> + com.google.cloud.redis.v1.GcsDestination, + com.google.cloud.redis.v1.GcsDestination.Builder, + com.google.cloud.redis.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, com.google.cloud.redis.v1.GcsDestination.Builder, com.google.cloud.redis.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.GcsDestination, + com.google.cloud.redis.v1.GcsDestination.Builder, + com.google.cloud.redis.v1.GcsDestinationOrBuilder>( (com.google.cloud.redis.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } + @java.lang.Override - 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 +794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OutputConfig) private static final com.google.cloud.redis.v1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.OutputConfig(); } @@ -732,16 +808,16 @@ public static com.google.cloud.redis.v1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +832,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java index c77497ec..08053456 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.redis.v1.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java index cdc7ae52..a026f486 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [RescheduleMaintenance][google.cloud.redis.v1.CloudRedis.RescheduleMaintenance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.RescheduleMaintenanceRequest} */ -public final class RescheduleMaintenanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RescheduleMaintenanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.RescheduleMaintenanceRequest) RescheduleMaintenanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RescheduleMaintenanceRequest.newBuilder() to construct. private RescheduleMaintenanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RescheduleMaintenanceRequest() { name_ = ""; rescheduleType_ = 0; @@ -26,16 +44,15 @@ private RescheduleMaintenanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RescheduleMaintenanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RescheduleMaintenanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private RescheduleMaintenanceRequest( 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: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - rescheduleType_ = rawValue; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); + rescheduleType_ = rawValue; + break; } - scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = 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) { @@ -93,36 +114,41 @@ private RescheduleMaintenanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); } /** + * + * *
    * Reschedule options.
    * 
* * Protobuf enum {@code google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType} */ - public enum RescheduleType - implements com.google.protobuf.ProtocolMessageEnum { + public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -131,6 +157,8 @@ public enum RescheduleType */ RESCHEDULE_TYPE_UNSPECIFIED(0), /** + * + * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -139,6 +167,8 @@ public enum RescheduleType */ IMMEDIATE(1), /** + * + * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -148,6 +178,8 @@ public enum RescheduleType
      */
     NEXT_AVAILABLE_WINDOW(2),
     /**
+     *
+     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -159,6 +191,8 @@ public enum RescheduleType ; /** + * + * *
      * Not set.
      * 
@@ -167,6 +201,8 @@ public enum RescheduleType */ public static final int RESCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -175,6 +211,8 @@ public enum RescheduleType */ public static final int IMMEDIATE_VALUE = 1; /** + * + * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -184,6 +222,8 @@ public enum RescheduleType
      */
     public static final int NEXT_AVAILABLE_WINDOW_VALUE = 2;
     /**
+     *
+     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -192,7 +232,6 @@ public enum RescheduleType */ public static final int SPECIFIC_TIME_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -217,50 +256,53 @@ public static RescheduleType valueOf(int value) { */ public static RescheduleType forNumber(int value) { switch (value) { - case 0: return RESCHEDULE_TYPE_UNSPECIFIED; - case 1: return IMMEDIATE; - case 2: return NEXT_AVAILABLE_WINDOW; - case 3: return SPECIFIC_TIME; - default: return null; + case 0: + return RESCHEDULE_TYPE_UNSPECIFIED; + case 1: + return IMMEDIATE; + case 2: + return NEXT_AVAILABLE_WINDOW; + case 3: + return SPECIFIC_TIME; + 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< - RescheduleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RescheduleType findValueByNumber(int number) { - return RescheduleType.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 RescheduleType findValueByNumber(int number) { + return RescheduleType.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.redis.v1.RescheduleMaintenanceRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final RescheduleType[] VALUES = values(); - public static RescheduleType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RescheduleType 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,13 +322,18 @@ private RescheduleType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -295,31 +342,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -330,40 +379,60 @@ public java.lang.String getName() { public static final int RESCHEDULE_TYPE_FIELD_NUMBER = 2; private int rescheduleType_; /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override public int getRescheduleTypeValue() { + @java.lang.Override + public int getRescheduleTypeValue() { return rescheduleType_; } /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The rescheduleType. */ - @java.lang.Override public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { + @java.lang.Override + public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); - return result == null ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf( + rescheduleType_); + return result == null + ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED + : result; } public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp scheduleTime_; /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -371,27 +440,36 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { @@ -399,6 +477,7 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,12 +489,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (rescheduleType_ != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { + if (rescheduleType_ + != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, rescheduleType_); } if (scheduleTime_ != null) { @@ -433,13 +514,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (rescheduleType_ != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, rescheduleType_); + if (rescheduleType_ + != com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rescheduleType_); } if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -449,20 +531,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.redis.v1.RescheduleMaintenanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.RescheduleMaintenanceRequest other = (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) obj; + com.google.cloud.redis.v1.RescheduleMaintenanceRequest other = + (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (rescheduleType_ != other.rescheduleType_) return false; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime() - .equals(other.getScheduleTime())) return false; + if (!getScheduleTime().equals(other.getScheduleTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -489,117 +570,127 @@ public int hashCode() { } public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1.RescheduleMaintenanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.redis.v1.RescheduleMaintenanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [RescheduleMaintenance][google.cloud.redis.v1.CloudRedis.RescheduleMaintenance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.RescheduleMaintenanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.RescheduleMaintenanceRequest) com.google.cloud.redis.v1.RescheduleMaintenanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.class, + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.RescheduleMaintenanceRequest.newBuilder() @@ -607,16 +698,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(); @@ -634,9 +724,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override @@ -655,7 +745,8 @@ public com.google.cloud.redis.v1.RescheduleMaintenanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.RescheduleMaintenanceRequest buildPartial() { - com.google.cloud.redis.v1.RescheduleMaintenanceRequest result = new com.google.cloud.redis.v1.RescheduleMaintenanceRequest(this); + com.google.cloud.redis.v1.RescheduleMaintenanceRequest result = + new com.google.cloud.redis.v1.RescheduleMaintenanceRequest(this); result.name_ = name_; result.rescheduleType_ = rescheduleType_; if (scheduleTimeBuilder_ == null) { @@ -671,38 +762,39 @@ public com.google.cloud.redis.v1.RescheduleMaintenanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.RescheduleMaintenanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.RescheduleMaintenanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.RescheduleMaintenanceRequest) other); } else { super.mergeFrom(other); return this; @@ -710,7 +802,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.RescheduleMaintenanceRequest other) { - if (other == com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.RescheduleMaintenanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -740,7 +833,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -752,20 +846,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -774,22 +872,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -797,60 +898,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -858,73 +972,105 @@ public Builder setNameBytes( private int rescheduleType_ = 0; /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override public int getRescheduleTypeValue() { + @java.lang.Override + public int getRescheduleTypeValue() { return rescheduleType_; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for rescheduleType to set. * @return This builder for chaining. */ public Builder setRescheduleTypeValue(int value) { - + rescheduleType_ = value; onChanged(); return this; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The rescheduleType. */ @java.lang.Override - public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { + public com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType + getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); - return result == null ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType result = + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.valueOf( + rescheduleType_); + return result == null + ? com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The rescheduleType to set. * @return This builder for chaining. */ - public Builder setRescheduleType(com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType value) { + public Builder setRescheduleType( + com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType value) { if (value == null) { throw new NullPointerException(); } - + rescheduleType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearRescheduleType() { - + rescheduleType_ = 0; onChanged(); return this; @@ -932,45 +1078,61 @@ public Builder clearRescheduleType() { private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { @@ -986,16 +1148,18 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setScheduleTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleTimeBuilder_ == null) { scheduleTime_ = builderForValue.build(); onChanged(); @@ -1006,19 +1170,24 @@ public Builder setScheduleTime( return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { if (scheduleTime_ != null) { scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleTime_) + .mergeFrom(value) + .buildPartial(); } else { scheduleTime_ = value; } @@ -1030,13 +1199,16 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearScheduleTime() { if (scheduleTimeBuilder_ == null) { @@ -1050,61 +1222,74 @@ public Builder clearScheduleTime() { return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - + onChanged(); return getScheduleTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { if (scheduleTimeBuilder_ != null) { return scheduleTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getScheduleTimeFieldBuilder() { if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), - getParentForChildren(), - isClean()); + scheduleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), getParentForChildren(), isClean()); scheduleTime_ = null; } return scheduleTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1114,12 +1299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.RescheduleMaintenanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.RescheduleMaintenanceRequest) private static final com.google.cloud.redis.v1.RescheduleMaintenanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.RescheduleMaintenanceRequest(); } @@ -1128,16 +1313,16 @@ public static com.google.cloud.redis.v1.RescheduleMaintenanceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RescheduleMaintenanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RescheduleMaintenanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RescheduleMaintenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RescheduleMaintenanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,6 +1337,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1.RescheduleMaintenanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java index 269ebc55..0ec63873 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/RescheduleMaintenanceRequestOrBuilder.java @@ -1,85 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface RescheduleMaintenanceRequestOrBuilder extends +public interface RescheduleMaintenanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.RescheduleMaintenanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for rescheduleType. */ int getRescheduleTypeValue(); /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The rescheduleType. */ com.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType(); /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java index afd5fd52..e09005e5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificate.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * TlsCertificate Resource
  * 
* * Protobuf type {@code google.cloud.redis.v1.TlsCertificate} */ -public final class TlsCertificate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TlsCertificate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.TlsCertificate) TlsCertificateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TlsCertificate.newBuilder() to construct. private TlsCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TlsCertificate() { serialNumber_ = ""; cert_ = ""; @@ -27,16 +45,15 @@ private TlsCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TlsCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TlsCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,57 +72,64 @@ private TlsCertificate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - serialNumber_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - cert_ = s; - break; - } - case 26: { - 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(); + serialNumber_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); + cert_ = s; + break; } - expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); + case 26: + { + 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 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - sha1Fingerprint_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sha1Fingerprint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,34 +137,39 @@ private TlsCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.TlsCertificate.class, com.google.cloud.redis.v1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1.TlsCertificate.class, + com.google.cloud.redis.v1.TlsCertificate.Builder.class); } public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; private volatile java.lang.Object serialNumber_; /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The serialNumber. */ @java.lang.Override @@ -149,29 +178,29 @@ public java.lang.String getSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; } } /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The bytes for serialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getSerialNumberBytes() { + public com.google.protobuf.ByteString getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -182,11 +211,14 @@ public java.lang.String getSerialNumber() { public static final int CERT_FIELD_NUMBER = 2; private volatile java.lang.Object cert_; /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The cert. */ @java.lang.Override @@ -195,29 +227,29 @@ public java.lang.String getCert() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; } } /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The bytes for cert. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertBytes() { + public com.google.protobuf.ByteString getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cert_ = b; return b; } else { @@ -228,13 +260,17 @@ public java.lang.String getCert() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -242,13 +278,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -256,13 +296,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -272,13 +315,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -286,13 +333,17 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -300,13 +351,16 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -316,11 +370,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int SHA1_FINGERPRINT_FIELD_NUMBER = 5; private volatile java.lang.Object sha1Fingerprint_; /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The sha1Fingerprint. */ @java.lang.Override @@ -329,29 +386,29 @@ public java.lang.String getSha1Fingerprint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; } } /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The bytes for sha1Fingerprint. */ @java.lang.Override - public com.google.protobuf.ByteString - getSha1FingerprintBytes() { + public com.google.protobuf.ByteString getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -360,6 +417,7 @@ public java.lang.String getSha1Fingerprint() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,8 +429,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serialNumber_); } @@ -404,12 +461,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cert_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha1Fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sha1Fingerprint_); @@ -422,29 +477,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.redis.v1.TlsCertificate)) { return super.equals(obj); } com.google.cloud.redis.v1.TlsCertificate other = (com.google.cloud.redis.v1.TlsCertificate) obj; - if (!getSerialNumber() - .equals(other.getSerialNumber())) return false; - if (!getCert() - .equals(other.getCert())) return false; + if (!getSerialNumber().equals(other.getSerialNumber())) return false; + if (!getCert().equals(other.getCert())) 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 (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } - if (!getSha1Fingerprint() - .equals(other.getSha1Fingerprint())) return false; + if (!getSha1Fingerprint().equals(other.getSha1Fingerprint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -475,118 +525,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.TlsCertificate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.TlsCertificate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.TlsCertificate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.TlsCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.TlsCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.TlsCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.TlsCertificate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.TlsCertificate 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.redis.v1.TlsCertificate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.TlsCertificate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.TlsCertificate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.TlsCertificate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.TlsCertificate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.TlsCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.TlsCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TlsCertificate Resource
    * 
* * Protobuf type {@code google.cloud.redis.v1.TlsCertificate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.TlsCertificate) com.google.cloud.redis.v1.TlsCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.TlsCertificate.class, com.google.cloud.redis.v1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1.TlsCertificate.class, + com.google.cloud.redis.v1.TlsCertificate.Builder.class); } // Construct using com.google.cloud.redis.v1.TlsCertificate.newBuilder() @@ -594,16 +653,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(); @@ -629,9 +687,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_TlsCertificate_descriptor; } @java.lang.Override @@ -650,7 +708,8 @@ public com.google.cloud.redis.v1.TlsCertificate build() { @java.lang.Override public com.google.cloud.redis.v1.TlsCertificate buildPartial() { - com.google.cloud.redis.v1.TlsCertificate result = new com.google.cloud.redis.v1.TlsCertificate(this); + com.google.cloud.redis.v1.TlsCertificate result = + new com.google.cloud.redis.v1.TlsCertificate(this); result.serialNumber_ = serialNumber_; result.cert_ = cert_; if (createTimeBuilder_ == null) { @@ -672,38 +731,39 @@ public com.google.cloud.redis.v1.TlsCertificate buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.TlsCertificate) { - return mergeFrom((com.google.cloud.redis.v1.TlsCertificate)other); + return mergeFrom((com.google.cloud.redis.v1.TlsCertificate) other); } else { super.mergeFrom(other); return this; @@ -761,18 +821,20 @@ public Builder mergeFrom( private java.lang.Object serialNumber_ = ""; /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @return The serialNumber. */ public java.lang.String getSerialNumber() { java.lang.Object ref = serialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; @@ -781,20 +843,21 @@ public java.lang.String getSerialNumber() { } } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @return The bytes for serialNumber. */ - public com.google.protobuf.ByteString - getSerialNumberBytes() { + public com.google.protobuf.ByteString getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -802,54 +865,61 @@ public java.lang.String getSerialNumber() { } } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @param value The serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumber( - java.lang.String value) { + public Builder setSerialNumber(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serialNumber_ = value; onChanged(); return this; } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @return This builder for chaining. */ public Builder clearSerialNumber() { - + serialNumber_ = getDefaultInstance().getSerialNumber(); onChanged(); return this; } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @param value The bytes for serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumberBytes( - com.google.protobuf.ByteString value) { + public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serialNumber_ = value; onChanged(); return this; @@ -857,18 +927,20 @@ public Builder setSerialNumberBytes( private java.lang.Object cert_ = ""; /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @return The cert. */ public java.lang.String getCert() { java.lang.Object ref = cert_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; @@ -877,20 +949,21 @@ public java.lang.String getCert() { } } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @return The bytes for cert. */ - public com.google.protobuf.ByteString - getCertBytes() { + public com.google.protobuf.ByteString getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cert_ = b; return b; } else { @@ -898,54 +971,61 @@ public java.lang.String getCert() { } } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @param value The cert to set. * @return This builder for chaining. */ - public Builder setCert( - java.lang.String value) { + public Builder setCert(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cert_ = value; onChanged(); return this; } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @return This builder for chaining. */ public Builder clearCert() { - + cert_ = getDefaultInstance().getCert(); onChanged(); return this; } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @param value The bytes for cert to set. * @return This builder for chaining. */ - public Builder setCertBytes( - com.google.protobuf.ByteString value) { + public Builder setCertBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cert_ = value; onChanged(); return this; @@ -953,45 +1033,64 @@ public Builder setCertBytes( 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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1007,16 +1106,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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(); @@ -1027,19 +1129,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } @@ -1051,13 +1157,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1071,54 +1181,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> 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_; @@ -1126,45 +1252,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1180,16 +1325,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -1200,19 +1348,23 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -1224,13 +1376,17 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -1244,54 +1400,70 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -1299,18 +1471,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object sha1Fingerprint_ = ""; /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @return The sha1Fingerprint. */ public java.lang.String getSha1Fingerprint() { java.lang.Object ref = sha1Fingerprint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; @@ -1319,20 +1493,21 @@ public java.lang.String getSha1Fingerprint() { } } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @return The bytes for sha1Fingerprint. */ - public com.google.protobuf.ByteString - getSha1FingerprintBytes() { + public com.google.protobuf.ByteString getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -1340,61 +1515,68 @@ public java.lang.String getSha1Fingerprint() { } } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @param value The sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1Fingerprint( - java.lang.String value) { + public Builder setSha1Fingerprint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha1Fingerprint_ = value; onChanged(); return this; } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @return This builder for chaining. */ public Builder clearSha1Fingerprint() { - + sha1Fingerprint_ = getDefaultInstance().getSha1Fingerprint(); onChanged(); return this; } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @param value The bytes for sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1FingerprintBytes( - com.google.protobuf.ByteString value) { + public Builder setSha1FingerprintBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha1Fingerprint_ = 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); } @@ -1404,12 +1586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.TlsCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.TlsCertificate) private static final com.google.cloud.redis.v1.TlsCertificate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.TlsCertificate(); } @@ -1418,16 +1600,16 @@ public static com.google.cloud.redis.v1.TlsCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TlsCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TlsCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TlsCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TlsCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1442,6 +1624,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.TlsCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java index 4c41d481..0c355b2a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/TlsCertificateOrBuilder.java @@ -1,135 +1,188 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface TlsCertificateOrBuilder extends +public interface TlsCertificateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.TlsCertificate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The serialNumber. */ java.lang.String getSerialNumber(); /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The bytes for serialNumber. */ - com.google.protobuf.ByteString - getSerialNumberBytes(); + com.google.protobuf.ByteString getSerialNumberBytes(); /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The cert. */ java.lang.String getCert(); /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The bytes for cert. */ - com.google.protobuf.ByteString - getCertBytes(); + com.google.protobuf.ByteString getCertBytes(); /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The sha1Fingerprint. */ java.lang.String getSha1Fingerprint(); /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The bytes for sha1Fingerprint. */ - com.google.protobuf.ByteString - getSha1FingerprintBytes(); + com.google.protobuf.ByteString getSha1FingerprintBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java index 27207482..2abd1c61 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceRequest() { - } + + private UpdateInstanceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private UpdateInstanceRequest( 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.redis.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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) { @@ -92,29 +112,33 @@ private UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpdateInstanceRequest.class, com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpdateInstanceRequest.class, + com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -126,7 +150,9 @@ private UpdateInstanceRequest(
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -134,6 +160,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -145,7 +173,9 @@ public boolean hasUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -153,6 +183,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -164,7 +196,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -174,12 +207,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.redis.v1.Instance instance_; /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -187,12 +224,16 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override @@ -200,12 +241,15 @@ public com.google.cloud.redis.v1.Instance getInstance() { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -213,6 +257,7 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -242,12 +286,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 (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,22 +299,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.redis.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.UpdateInstanceRequest other = (com.google.cloud.redis.v1.UpdateInstanceRequest) obj; + com.google.cloud.redis.v1.UpdateInstanceRequest other = + (com.google.cloud.redis.v1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -298,118 +339,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest 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.redis.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.UpdateInstanceRequest) com.google.cloud.redis.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpdateInstanceRequest.class, com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpdateInstanceRequest.class, + com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.UpdateInstanceRequest.newBuilder() @@ -417,16 +467,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -467,7 +516,8 @@ public com.google.cloud.redis.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.UpdateInstanceRequest buildPartial() { - com.google.cloud.redis.v1.UpdateInstanceRequest result = new com.google.cloud.redis.v1.UpdateInstanceRequest(this); + com.google.cloud.redis.v1.UpdateInstanceRequest result = + new com.google.cloud.redis.v1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -486,38 +536,39 @@ public com.google.cloud.redis.v1.UpdateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +576,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.UpdateInstanceRequest other) { - if (other == com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -563,8 +615,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_; /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -576,13 +633,17 @@ public Builder mergeFrom(
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -594,17 +655,23 @@ public boolean hasUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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(); } } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -616,7 +683,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -632,6 +700,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -643,10 +713,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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(); @@ -657,6 +727,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -668,13 +740,14 @@ public Builder setUpdateMask(
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -686,6 +759,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -697,7 +772,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -711,6 +787,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -722,14 +800,17 @@ public Builder clearUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -741,17 +822,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; } } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -763,17 +848,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; @@ -781,42 +870,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.redis.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.redis.v1.Instance, + com.google.cloud.redis.v1.Instance.Builder, + com.google.cloud.redis.v1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.redis.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { @@ -832,15 +937,17 @@ public Builder setInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.redis.v1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.redis.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -851,18 +958,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -874,12 +986,15 @@ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -893,58 +1008,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> + com.google.cloud.redis.v1.Instance, + com.google.cloud.redis.v1.Instance.Builder, + com.google.cloud.redis.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, + com.google.cloud.redis.v1.Instance.Builder, + com.google.cloud.redis.v1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +1082,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpdateInstanceRequest) private static final com.google.cloud.redis.v1.UpdateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.UpdateInstanceRequest(); } @@ -968,16 +1096,16 @@ public static com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1120,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java index 385464ef..54d6c324 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface UpdateInstanceRequestOrBuilder extends +public interface UpdateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -19,11 +37,15 @@ public interface UpdateInstanceRequestOrBuilder extends
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -35,11 +57,15 @@ public interface UpdateInstanceRequestOrBuilder extends
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -51,37 +77,49 @@ public interface UpdateInstanceRequestOrBuilder extends
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.redis.v1.Instance getInstance(); /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java index c2e59b69..44d852b6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequest.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Request for [UpgradeInstance][google.cloud.redis.v1.CloudRedis.UpgradeInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.UpgradeInstanceRequest} */ -public final class UpgradeInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpgradeInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.UpgradeInstanceRequest) UpgradeInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpgradeInstanceRequest.newBuilder() to construct. private UpgradeInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpgradeInstanceRequest() { name_ = ""; redisVersion_ = ""; @@ -26,16 +44,15 @@ private UpgradeInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpgradeInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpgradeInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private UpgradeInstanceRequest( 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(); - redisVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + redisVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private UpgradeInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpgradeInstanceRequest.class, + com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -118,31 +144,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -153,11 +181,14 @@ public java.lang.String getName() { public static final int REDIS_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object redisVersion_; /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The redisVersion. */ @java.lang.Override @@ -166,29 +197,29 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getRedisVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -239,17 +270,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.redis.v1.UpgradeInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1.UpgradeInstanceRequest other = (com.google.cloud.redis.v1.UpgradeInstanceRequest) obj; + com.google.cloud.redis.v1.UpgradeInstanceRequest other = + (com.google.cloud.redis.v1.UpgradeInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRedisVersion() - .equals(other.getRedisVersion())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRedisVersion().equals(other.getRedisVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,118 +300,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.UpgradeInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [UpgradeInstance][google.cloud.redis.v1.CloudRedis.UpgradeInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.UpgradeInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.UpgradeInstanceRequest) com.google.cloud.redis.v1.UpgradeInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1.UpgradeInstanceRequest.class, + com.google.cloud.redis.v1.UpgradeInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1.UpgradeInstanceRequest.newBuilder() @@ -389,16 +428,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto + .internal_static_google_cloud_redis_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override @@ -431,7 +469,8 @@ public com.google.cloud.redis.v1.UpgradeInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1.UpgradeInstanceRequest buildPartial() { - com.google.cloud.redis.v1.UpgradeInstanceRequest result = new com.google.cloud.redis.v1.UpgradeInstanceRequest(this); + com.google.cloud.redis.v1.UpgradeInstanceRequest result = + new com.google.cloud.redis.v1.UpgradeInstanceRequest(this); result.name_ = name_; result.redisVersion_ = redisVersion_; onBuilt(); @@ -442,38 +481,39 @@ public com.google.cloud.redis.v1.UpgradeInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1.UpgradeInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.UpgradeInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1.UpgradeInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +521,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1.UpgradeInstanceRequest other) { - if (other == com.google.cloud.redis.v1.UpgradeInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1.UpgradeInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -521,20 +562,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -543,22 +588,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -566,60 +614,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -627,18 +688,20 @@ public Builder setNameBytes( private java.lang.Object redisVersion_ = ""; /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -647,20 +710,21 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -668,61 +732,68 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion( - java.lang.String value) { + public Builder setRedisVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = 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); } @@ -732,12 +803,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.UpgradeInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpgradeInstanceRequest) private static final com.google.cloud.redis.v1.UpgradeInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.UpgradeInstanceRequest(); } @@ -746,16 +817,16 @@ public static com.google.cloud.redis.v1.UpgradeInstanceRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -770,6 +841,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.UpgradeInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java index c3b242ae..1dd9553a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpgradeInstanceRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface UpgradeInstanceRequestOrBuilder extends +public interface UpgradeInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.UpgradeInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString - getRedisVersionBytes(); + com.google.protobuf.ByteString getRedisVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java index f20ca5b6..34a2a3f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindow.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Time window in which disruptive maintenance updates occur. Non-disruptive
  * updates can occur inside or outside this window.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.WeeklyMaintenanceWindow}
  */
-public final class WeeklyMaintenanceWindow extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WeeklyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.WeeklyMaintenanceWindow)
     WeeklyMaintenanceWindowOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WeeklyMaintenanceWindow.newBuilder() to construct.
   private WeeklyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WeeklyMaintenanceWindow() {
     day_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WeeklyMaintenanceWindow();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private WeeklyMaintenanceWindow(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,45 +71,49 @@ private WeeklyMaintenanceWindow(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            day_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.type.TimeOfDay.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
-            }
-            startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+              day_ = rawValue;
+              break;
             }
+          case 18:
+            {
+              com.google.type.TimeOfDay.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (duration_ != null) {
-              subBuilder = duration_.toBuilder();
-            }
-            duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(duration_);
-              duration_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (duration_ != null) {
+                subBuilder = duration_.toBuilder();
+              }
+              duration_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(duration_);
+                duration_ = 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) {
@@ -100,48 +121,58 @@ private WeeklyMaintenanceWindow(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
+            com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class,
+            com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
   }
 
   public static final int DAY_FIELD_NUMBER = 1;
   private int day_;
   /**
+   *
+   *
    * 
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for day. */ - @java.lang.Override public int getDayValue() { + @java.lang.Override + public int getDayValue() { return day_; } /** + * + * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The day. */ - @java.lang.Override public com.google.type.DayOfWeek getDay() { + @java.lang.Override + public com.google.type.DayOfWeek getDay() { @SuppressWarnings("deprecation") com.google.type.DayOfWeek result = com.google.type.DayOfWeek.valueOf(day_); return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; @@ -150,11 +181,14 @@ private WeeklyMaintenanceWindow( public static final int START_TIME_FIELD_NUMBER = 2; private com.google.type.TimeOfDay startTime_; /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -162,11 +196,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startTime. */ @java.lang.Override @@ -174,6 +211,8 @@ public com.google.type.TimeOfDay getStartTime() { return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
@@ -188,11 +227,15 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration duration_; /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ @java.lang.Override @@ -200,11 +243,15 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ @java.lang.Override @@ -212,11 +259,14 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -224,6 +274,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { output.writeEnum(1, day_); } @@ -256,16 +306,13 @@ public int getSerializedSize() { size = 0; if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, day_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, day_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -275,23 +322,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.redis.v1.WeeklyMaintenanceWindow)) { return super.equals(obj); } - com.google.cloud.redis.v1.WeeklyMaintenanceWindow other = (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) obj; + com.google.cloud.redis.v1.WeeklyMaintenanceWindow other = + (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) obj; if (day_ != other.day_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,96 +366,103 @@ public int hashCode() { } public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1.WeeklyMaintenanceWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Time window in which disruptive maintenance updates occur. Non-disruptive
    * updates can occur inside or outside this window.
@@ -417,21 +470,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1.WeeklyMaintenanceWindow}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.WeeklyMaintenanceWindow)
       com.google.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
+              com.google.cloud.redis.v1.WeeklyMaintenanceWindow.class,
+              com.google.cloud.redis.v1.WeeklyMaintenanceWindow.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.WeeklyMaintenanceWindow.newBuilder()
@@ -439,16 +494,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -470,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
@@ -491,7 +545,8 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.WeeklyMaintenanceWindow buildPartial() {
-      com.google.cloud.redis.v1.WeeklyMaintenanceWindow result = new com.google.cloud.redis.v1.WeeklyMaintenanceWindow(this);
+      com.google.cloud.redis.v1.WeeklyMaintenanceWindow result =
+          new com.google.cloud.redis.v1.WeeklyMaintenanceWindow(this);
       result.day_ = day_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -511,38 +566,39 @@ public com.google.cloud.redis.v1.WeeklyMaintenanceWindow buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.WeeklyMaintenanceWindow) {
-        return mergeFrom((com.google.cloud.redis.v1.WeeklyMaintenanceWindow)other);
+        return mergeFrom((com.google.cloud.redis.v1.WeeklyMaintenanceWindow) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -550,7 +606,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1.WeeklyMaintenanceWindow other) {
-      if (other == com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance()) return this;
+      if (other == com.google.cloud.redis.v1.WeeklyMaintenanceWindow.getDefaultInstance())
+        return this;
       if (other.day_ != 0) {
         setDayValue(other.getDayValue());
       }
@@ -579,7 +636,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.redis.v1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -591,37 +649,47 @@ public Builder mergeFrom(
 
     private int day_ = 0;
     /**
+     *
+     *
      * 
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for day. */ - @java.lang.Override public int getDayValue() { + @java.lang.Override + public int getDayValue() { return day_; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The enum numeric value on the wire for day to set. * @return This builder for chaining. */ public Builder setDayValue(int value) { - + day_ = value; onChanged(); return this; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The day. */ @java.lang.Override @@ -631,11 +699,14 @@ public com.google.type.DayOfWeek getDay() { return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The day to set. * @return This builder for chaining. */ @@ -643,21 +714,24 @@ public Builder setDay(com.google.type.DayOfWeek value) { if (value == null) { throw new NullPointerException(); } - + day_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDay() { - + day_ = 0; onChanged(); return this; @@ -665,24 +739,33 @@ public Builder clearDay() { private com.google.type.TimeOfDay startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> startTimeBuilder_; + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startTime. */ public com.google.type.TimeOfDay getStartTime() { @@ -693,6 +776,8 @@ public com.google.type.TimeOfDay getStartTime() { } } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -713,14 +798,15 @@ public Builder setStartTime(com.google.type.TimeOfDay value) { return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime( - com.google.type.TimeOfDay.Builder builderForValue) { + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -731,6 +817,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -741,7 +829,7 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -753,6 +841,8 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -771,6 +861,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -778,11 +870,13 @@ public Builder clearStartTime() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -793,11 +887,12 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -805,14 +900,17 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -820,24 +918,35 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -848,11 +957,14 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -868,14 +980,16 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -886,17 +1000,20 @@ public Builder setDuration( return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -908,11 +1025,14 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDuration() { if (durationBuilder_ == null) { @@ -926,55 +1046,66 @@ public Builder clearDuration() { return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1115,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.WeeklyMaintenanceWindow) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.WeeklyMaintenanceWindow) private static final com.google.cloud.redis.v1.WeeklyMaintenanceWindow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1.WeeklyMaintenanceWindow(); } @@ -998,16 +1129,16 @@ public static com.google.cloud.redis.v1.WeeklyMaintenanceWindow getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WeeklyMaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeeklyMaintenanceWindow(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WeeklyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WeeklyMaintenanceWindow(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1.WeeklyMaintenanceWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java index 55445e1c..bbf71327 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/WeeklyMaintenanceWindowOrBuilder.java @@ -1,50 +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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; -public interface WeeklyMaintenanceWindowOrBuilder extends +public interface WeeklyMaintenanceWindowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.WeeklyMaintenanceWindow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for day. */ int getDayValue(); /** + * + * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The day. */ com.google.type.DayOfWeek getDay(); /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startTime. */ com.google.type.TimeOfDay getStartTime(); /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
@@ -54,29 +84,40 @@ public interface WeeklyMaintenanceWindowOrBuilder extends com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java rename to proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java index 2e20c143..e162ecdb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java +++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.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/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; /** + * + * *
  * Defines specific information for a particular zone. Currently empty and
  * reserved for future use only.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata}
  */
-public final class ZoneMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ZoneMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ZoneMetadata)
     ZoneMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ZoneMetadata.newBuilder() to construct.
   private ZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ZoneMetadata() {
-  }
+
+  private ZoneMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ZoneMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ZoneMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,13 +69,13 @@ private ZoneMetadata(
           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) {
@@ -67,27 +83,30 @@ private ZoneMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+        .internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1.ZoneMetadata.class, com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
+            com.google.cloud.redis.v1.ZoneMetadata.class,
+            com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -99,8 +118,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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);
   }
 
@@ -118,7 +136,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.redis.v1.ZoneMetadata)) {
       return super.equals(obj);
@@ -141,97 +159,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata 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.redis.v1.ZoneMetadata parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.redis.v1.ZoneMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Defines specific information for a particular zone. Currently empty and
    * reserved for future use only.
@@ -239,21 +264,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ZoneMetadata)
       com.google.cloud.redis.v1.ZoneMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1.ZoneMetadata.class, com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
+              com.google.cloud.redis.v1.ZoneMetadata.class,
+              com.google.cloud.redis.v1.ZoneMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1.ZoneMetadata.newBuilder()
@@ -261,16 +288,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -278,9 +304,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+          .internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -299,7 +325,8 @@ public com.google.cloud.redis.v1.ZoneMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1.ZoneMetadata buildPartial() {
-      com.google.cloud.redis.v1.ZoneMetadata result = new com.google.cloud.redis.v1.ZoneMetadata(this);
+      com.google.cloud.redis.v1.ZoneMetadata result =
+          new com.google.cloud.redis.v1.ZoneMetadata(this);
       onBuilt();
       return result;
     }
@@ -308,38 +335,39 @@ public com.google.cloud.redis.v1.ZoneMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1.ZoneMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1.ZoneMetadata)other);
+        return mergeFrom((com.google.cloud.redis.v1.ZoneMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -376,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);
     }
 
@@ -388,12 +416,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ZoneMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ZoneMetadata)
   private static final com.google.cloud.redis.v1.ZoneMetadata DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ZoneMetadata();
   }
@@ -402,16 +430,16 @@ public static com.google.cloud.redis.v1.ZoneMetadata getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ZoneMetadata parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ZoneMetadata(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ZoneMetadata parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ZoneMetadata(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -426,6 +454,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.redis.v1.ZoneMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java
new file mode 100644
index 00000000..a0bc2627
--- /dev/null
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.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/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+public interface ZoneMetadataOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ZoneMetadata)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto b/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
rename to proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java
new file mode 100644
index 00000000..57d3f714
--- /dev/null
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisServiceBetaProto.java
@@ -0,0 +1,688 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/redis/v1beta1/cloud_redis.proto
+
+package com.google.cloud.redis.v1beta1;
+
+public final class CloudRedisServiceBetaProto {
+  private CloudRedisServiceBetaProto() {}
+
+  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_redis_v1beta1_NodeInfo_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_Instance_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_redis_v1beta1_TlsCertificate_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/redis/v1beta1/cloud_redis"
+          + ".proto\022\032google.cloud.redis.v1beta1\032\034goog"
+          + "le/api/annotations.proto\032\027google/api/cli"
+          + "ent.proto\032\037google/api/field_behavior.pro"
+          + "to\032\031google/api/resource.proto\032#google/lo"
+          + "ngrunning/operations.proto\032\036google/proto"
+          + "buf/duration.proto\032 google/protobuf/fiel"
+          + "d_mask.proto\032\037google/protobuf/timestamp."
+          + "proto\032\033google/type/dayofweek.proto\032\033goog"
+          + "le/type/timeofday.proto\".\n\010NodeInfo\022\017\n\002i"
+          + "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\"\245\021\n\010Inst"
+          + "ance\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030"
+          + "\002 \001(\t\022@\n\006labels\030\003 \003(\01320.google.cloud.red"
+          + "is.v1beta1.Instance.LabelsEntry\022\030\n\013locat"
+          + "ion_id\030\004 \001(\tB\003\340A\001\022$\n\027alternative_locatio"
+          + "n_id\030\005 \001(\tB\003\340A\001\022\032\n\rredis_version\030\007 \001(\tB\003"
+          + "\340A\001\022\036\n\021reserved_ip_range\030\t \001(\tB\003\340A\001\022\037\n\022s"
+          + "econdary_ip_range\030\036 \001(\tB\003\340A\001\022\021\n\004host\030\n \001"
+          + "(\tB\003\340A\003\022\021\n\004port\030\013 \001(\005B\003\340A\003\022 \n\023current_lo"
+          + "cation_id\030\014 \001(\tB\003\340A\003\0224\n\013create_time\030\r \001("
+          + "\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n\005st"
+          + "ate\030\016 \001(\0162*.google.cloud.redis.v1beta1.I"
+          + "nstance.StateB\003\340A\003\022\033\n\016status_message\030\017 \001"
+          + "(\tB\003\340A\003\022R\n\rredis_configs\030\020 \003(\01326.google."
+          + "cloud.redis.v1beta1.Instance.RedisConfig"
+          + "sEntryB\003\340A\001\022<\n\004tier\030\021 \001(\0162).google.cloud"
+          + ".redis.v1beta1.Instance.TierB\003\340A\002\022\033\n\016mem"
+          + "ory_size_gb\030\022 \001(\005B\003\340A\002\022\037\n\022authorized_net"
+          + "work\030\024 \001(\tB\003\340A\001\022%\n\030persistence_iam_ident"
+          + "ity\030\025 \001(\tB\003\340A\003\022K\n\014connect_mode\030\026 \001(\01620.g"
+          + "oogle.cloud.redis.v1beta1.Instance.Conne"
+          + "ctModeB\003\340A\001\022\031\n\014auth_enabled\030\027 \001(\010B\003\340A\001\022H"
+          + "\n\017server_ca_certs\030\031 \003(\0132*.google.cloud.r"
+          + "edis.v1beta1.TlsCertificateB\003\340A\003\022`\n\027tran"
+          + "sit_encryption_mode\030\032 \001(\0162:.google.cloud"
+          + ".redis.v1beta1.Instance.TransitEncryptio"
+          + "nModeB\003\340A\001\022N\n\022maintenance_policy\030\033 \001(\0132-"
+          + ".google.cloud.redis.v1beta1.MaintenanceP"
+          + "olicyB\003\340A\001\022R\n\024maintenance_schedule\030\034 \001(\013"
+          + "2/.google.cloud.redis.v1beta1.Maintenanc"
+          + "eScheduleB\003\340A\003\022\032\n\rreplica_count\030\037 \001(\005B\003\340"
+          + "A\001\0228\n\005nodes\030  \003(\0132$.google.cloud.redis.v"
+          + "1beta1.NodeInfoB\003\340A\003\022\032\n\rread_endpoint\030! "
+          + "\001(\tB\003\340A\003\022\037\n\022read_endpoint_port\030\" \001(\005B\003\340A"
+          + "\003\022V\n\022read_replicas_mode\030# \001(\01625.google.c"
+          + "loud.redis.v1beta1.Instance.ReadReplicas"
+          + "ModeB\003\340A\001\022N\n\022persistence_config\030% \001(\0132-."
+          + "google.cloud.redis.v1beta1.PersistenceCo"
+          + "nfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
+          + "\005value\030\002 \001(\t:\0028\001\0323\n\021RedisConfigsEntry\022\013\n"
+          + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\005State\022"
+          + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005"
+          + "READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tR"
+          + "EPAIRING\020\005\022\017\n\013MAINTENANCE\020\006\022\r\n\tIMPORTING"
+          + "\020\010\022\020\n\014FAILING_OVER\020\n\"8\n\004Tier\022\024\n\020TIER_UNS"
+          + "PECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013STANDARD_HA\020\003\"["
+          + "\n\013ConnectMode\022\034\n\030CONNECT_MODE_UNSPECIFIE"
+          + "D\020\000\022\022\n\016DIRECT_PEERING\020\001\022\032\n\026PRIVATE_SERVI"
+          + "CE_ACCESS\020\002\"i\n\025TransitEncryptionMode\022\'\n#"
+          + "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022\031\n"
+          + "\025SERVER_AUTHENTICATION\020\001\022\014\n\010DISABLED\020\002\"m"
+          + "\n\020ReadReplicasMode\022\"\n\036READ_REPLICAS_MODE"
+          + "_UNSPECIFIED\020\000\022\032\n\026READ_REPLICAS_DISABLED"
+          + "\020\001\022\031\n\025READ_REPLICAS_ENABLED\020\002:`\352A]\n\035redi"
+          + "s.googleapis.com/Instance\022\"2/v1beta1/{parent=pr"
+          + "ojects/*/locations/*}/instances:\010instanc"
+          + "e\332A\033parent,instance_id,instance\312A:\n#goog"
+          + "le.cloud.redis.v1beta1.Instance\022\023google."
+          + "protobuf.Any\022\206\002\n\016UpdateInstance\0221.google"
+          + ".cloud.redis.v1beta1.UpdateInstanceReque"
+          + "st\032\035.google.longrunning.Operation\"\241\001\202\323\344\223"
+          + "\002G2;/v1beta1/{instance.name=projects/*/l"
+          + "ocations/*/instances/*}:\010instance\332A\024upda"
+          + "te_mask,instance\312A:\n#google.cloud.redis."
+          + "v1beta1.Instance\022\023google.protobuf.Any\022\376\001"
+          + "\n\017UpgradeInstance\0222.google.cloud.redis.v"
+          + "1beta1.UpgradeInstanceRequest\032\035.google.l"
+          + "ongrunning.Operation\"\227\001\202\323\344\223\002?\":/v1beta1/"
+          + "{name=projects/*/locations/*/instances/*"
+          + "}:upgrade:\001*\332A\022name,redis_version\312A:\n#go"
+          + "ogle.cloud.redis.v1beta1.Instance\022\023googl"
+          + "e.protobuf.Any\022\372\001\n\016ImportInstance\0221.goog"
+          + "le.cloud.redis.v1beta1.ImportInstanceReq"
+          + "uest\032\035.google.longrunning.Operation\"\225\001\202\323"
+          + "\344\223\002>\"9/v1beta1/{name=projects/*/location"
+          + "s/*/instances/*}:import:\001*\332A\021name,input_"
+          + "config\312A:\n#google.cloud.redis.v1beta1.In"
+          + "stance\022\023google.protobuf.Any\022\373\001\n\016ExportIn"
+          + "stance\0221.google.cloud.redis.v1beta1.Expo"
+          + "rtInstanceRequest\032\035.google.longrunning.O"
+          + "peration\"\226\001\202\323\344\223\002>\"9/v1beta1/{name=projec"
+          + "ts/*/locations/*/instances/*}:export:\001*\332"
+          + "A\022name,output_config\312A:\n#google.cloud.re"
+          + "dis.v1beta1.Instance\022\023google.protobuf.An"
+          + "y\022\210\002\n\020FailoverInstance\0223.google.cloud.re"
+          + "dis.v1beta1.FailoverInstanceRequest\032\035.go"
+          + "ogle.longrunning.Operation\"\237\001\202\323\344\223\002@\";/v1"
+          + "beta1/{name=projects/*/locations/*/insta"
+          + "nces/*}:failover:\001*\332A\031name,data_protecti"
+          + "on_mode\312A:\n#google.cloud.redis.v1beta1.I"
+          + "nstance\022\023google.protobuf.Any\022\324\001\n\016DeleteI"
+          + "nstance\0221.google.cloud.redis.v1beta1.Del"
+          + "eteInstanceRequest\032\035.google.longrunning."
+          + "Operation\"p\202\323\344\223\0024*2/v1beta1/{name=projec"
+          + "ts/*/locations/*/instances/*}\332A\004name\312A,\n"
+          + "\025google.protobuf.Empty\022\023google.protobuf."
+          + "Any\022\252\002\n\025RescheduleMaintenance\0228.google.c"
+          + "loud.redis.v1beta1.RescheduleMaintenance"
+          + "Request\032\035.google.longrunning.Operation\"\267"
+          + "\001\202\323\344\223\002M\"H/v1beta1/{name=projects/*/locat"
+          + "ions/*/instances/*}:rescheduleMaintenanc"
+          + "e:\001*\332A$name, reschedule_type, schedule_t"
+          + "ime\312A:\n#google.cloud.redis.v1beta1.Insta"
+          + "nce\022\023google.protobuf.Any\032H\312A\024redis.googl"
+          + "eapis.com\322A.https://www.googleapis.com/a"
+          + "uth/cloud-platformB\177\n\036com.google.cloud.r"
+          + "edis.v1beta1B\032CloudRedisServiceBetaProto"
+          + "P\001Z?google.golang.org/genproto/googleapi"
+          + "s/cloud/redis/v1beta1;redisb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.longrunning.OperationsProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+              com.google.type.DayOfWeekProto.getDescriptor(),
+              com.google.type.TimeOfDayProto.getDescriptor(),
+            });
+    internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor,
+            new java.lang.String[] {
+              "Id", "Zone",
+            });
+    internal_static_google_cloud_redis_v1beta1_Instance_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_Instance_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "Labels",
+              "LocationId",
+              "AlternativeLocationId",
+              "RedisVersion",
+              "ReservedIpRange",
+              "SecondaryIpRange",
+              "Host",
+              "Port",
+              "CurrentLocationId",
+              "CreateTime",
+              "State",
+              "StatusMessage",
+              "RedisConfigs",
+              "Tier",
+              "MemorySizeGb",
+              "AuthorizedNetwork",
+              "PersistenceIamIdentity",
+              "ConnectMode",
+              "AuthEnabled",
+              "ServerCaCerts",
+              "TransitEncryptionMode",
+              "MaintenancePolicy",
+              "MaintenanceSchedule",
+              "ReplicaCount",
+              "Nodes",
+              "ReadEndpoint",
+              "ReadEndpointPort",
+              "ReadReplicasMode",
+              "PersistenceConfig",
+            });
+    internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor =
+        internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_Instance_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor =
+        internal_static_google_cloud_redis_v1beta1_Instance_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor,
+            new java.lang.String[] {
+              "PersistenceMode", "RdbSnapshotPeriod", "RdbNextSnapshotTime", "RdbSnapshotStartTime",
+            });
+    internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "RescheduleType", "ScheduleTime",
+            });
+    internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor,
+            new java.lang.String[] {
+              "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow",
+            });
+    internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor,
+            new java.lang.String[] {
+              "Day", "StartTime", "Duration",
+            });
+    internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor,
+            new java.lang.String[] {
+              "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime",
+            });
+    internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor,
+            new java.lang.String[] {
+              "Instances", "NextPageToken", "Unreachable",
+            });
+    internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor,
+            new java.lang.String[] {
+              "AuthString",
+            });
+    internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "InstanceId", "Instance",
+            });
+    internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "UpdateMask", "Instance",
+            });
+    internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "RedisVersion",
+            });
+    internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor =
+        getDescriptor().getMessageTypes().get(16);
+    internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor,
+            new java.lang.String[] {
+              "Uri",
+            });
+    internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor =
+        getDescriptor().getMessageTypes().get(17);
+    internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor,
+            new java.lang.String[] {
+              "GcsSource", "Source",
+            });
+    internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(18);
+    internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "InputConfig",
+            });
+    internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor =
+        getDescriptor().getMessageTypes().get(19);
+    internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor,
+            new java.lang.String[] {
+              "Uri",
+            });
+    internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor =
+        getDescriptor().getMessageTypes().get(20);
+    internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor,
+            new java.lang.String[] {
+              "GcsDestination", "Destination",
+            });
+    internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(21);
+    internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "OutputConfig",
+            });
+    internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(22);
+    internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "DataProtectionMode",
+            });
+    internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(23);
+    internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor,
+            new java.lang.String[] {
+              "AvailableZones",
+            });
+    internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor =
+        internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(24);
+    internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor =
+        getDescriptor().getMessageTypes().get(25);
+    internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor,
+            new java.lang.String[] {
+              "SerialNumber", "Cert", "CreateTime", "ExpireTime", "Sha1Fingerprint",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.type.DayOfWeekProto.getDescriptor();
+    com.google.type.TimeOfDayProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java
similarity index 67%
rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java
rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java
index a3873fb0..d7c96f49 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequest.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/redis/v1beta1/cloud_redis.proto
 
 package com.google.cloud.redis.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -26,16 +44,15 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateInstanceRequest( 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(); - instanceId_ = s; - break; - } - case 26: { - com.google.cloud.redis.v1beta1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); + parent_ = s; + break; } - instance_ = input.readMessage(com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + instanceId_ = s; + break; } + case 26: + { + com.google.cloud.redis.v1beta1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage( + com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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) { @@ -93,36 +115,43 @@ private CreateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, + com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +160,33 @@ 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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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 +197,8 @@ public java.lang.String getParent() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -177,6 +210,7 @@ public java.lang.String getParent() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -185,14 +219,15 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** + * + * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -204,16 +239,15 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -224,11 +258,16 @@ public java.lang.String getInstanceId() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.redis.v1beta1.Instance instance_; /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -236,23 +275,34 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance getInstance() { - return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -260,6 +310,7 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,8 +322,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -298,8 +348,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,21 +358,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.redis.v1beta1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.CreateInstanceRequest other = (com.google.cloud.redis.v1beta1.CreateInstanceRequest) obj; + com.google.cloud.redis.v1beta1.CreateInstanceRequest other = + (com.google.cloud.redis.v1beta1.CreateInstanceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -350,117 +397,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.CreateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.CreateInstanceRequest) com.google.cloud.redis.v1beta1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.CreateInstanceRequest.class, + com.google.cloud.redis.v1beta1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.CreateInstanceRequest.newBuilder() @@ -468,16 +524,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(); @@ -495,9 +550,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -516,7 +571,8 @@ public com.google.cloud.redis.v1beta1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.CreateInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.CreateInstanceRequest result = new com.google.cloud.redis.v1beta1.CreateInstanceRequest(this); + com.google.cloud.redis.v1beta1.CreateInstanceRequest result = + new com.google.cloud.redis.v1beta1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -532,38 +588,39 @@ public com.google.cloud.redis.v1beta1.CreateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -571,7 +628,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.CreateInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -602,7 +660,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.CreateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,20 +673,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.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; @@ -636,22 +699,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.google.api.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 { @@ -659,60 +725,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -720,6 +799,8 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -731,13 +812,13 @@ public Builder setParentBytes(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -746,6 +827,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -757,15 +840,14 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -773,6 +855,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -784,20 +868,22 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -809,15 +895,18 @@ public Builder setInstanceId(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. The logical name of the Redis instance in the customer project
      * with the following restrictions:
@@ -829,16 +918,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -846,39 +935,58 @@ public Builder setInstanceIdBytes( private com.google.cloud.redis.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.redis.v1beta1.Instance, + com.google.cloud.redis.v1beta1.Instance.Builder, + com.google.cloud.redis.v1beta1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.redis.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -894,14 +1002,17 @@ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -912,17 +1023,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -934,11 +1051,15 @@ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -952,55 +1073,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. A Redis [Instance] resource
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> + com.google.cloud.redis.v1beta1.Instance, + com.google.cloud.redis.v1beta1.Instance.Builder, + com.google.cloud.redis.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.Instance, + com.google.cloud.redis.v1beta1.Instance.Builder, + com.google.cloud.redis.v1beta1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1010,12 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.CreateInstanceRequest) private static final com.google.cloud.redis.v1beta1.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.CreateInstanceRequest(); } @@ -1024,16 +1161,16 @@ public static com.google.cloud.redis.v1beta1.CreateInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1048,6 +1185,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java index 3026092d..f2da240f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CreateInstanceRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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 logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -43,10 +70,13 @@ public interface CreateInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. The logical name of the Redis instance in the customer project
    * with the following restrictions:
@@ -58,35 +88,49 @@ public interface CreateInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.redis.v1beta1.Instance getInstance(); /** + * + * *
    * Required. A Redis [Instance] resource
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java index 6c29b896..a10b9204 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteInstanceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, + com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -111,31 +136,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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.redis.v1beta1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.DeleteInstanceRequest other = (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) obj; + com.google.cloud.redis.v1beta1.DeleteInstanceRequest other = + (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.DeleteInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.DeleteInstanceRequest) com.google.cloud.redis.v1beta1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.DeleteInstanceRequest.class, + com.google.cloud.redis.v1beta1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.DeleteInstanceRequest.newBuilder() @@ -326,16 +362,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(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.redis.v1beta1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.DeleteInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.DeleteInstanceRequest result = new com.google.cloud.redis.v1beta1.DeleteInstanceRequest(this); + com.google.cloud.redis.v1beta1.DeleteInstanceRequest result = + new com.google.cloud.redis.v1beta1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.redis.v1beta1.DeleteInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.DeleteInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.DeleteInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.DeleteInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +477,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -473,22 +516,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -496,67 +542,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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); } @@ -566,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.DeleteInstanceRequest) private static final com.google.cloud.redis.v1beta1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.DeleteInstanceRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.redis.v1beta1.DeleteInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..d5a75e1e --- /dev/null +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +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/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface DeleteInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java index 03c3de77..9ef4ff0a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [Export][google.cloud.redis.v1beta1.CloudRedis.ExportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ExportInstanceRequest} */ -public final class ExportInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ExportInstanceRequest) ExportInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportInstanceRequest.newBuilder() to construct. private ExportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private ExportInstanceRequest( 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 26: { - com.google.cloud.redis.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + name_ = s; + break; } - outputConfig_ = input.readMessage(com.google.cloud.redis.v1beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.redis.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.redis.v1beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = 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) { @@ -86,29 +107,33 @@ private ExportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, + com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -116,6 +141,7 @@ private ExportInstanceRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -124,14 +150,15 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -139,16 +166,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -159,11 +185,16 @@ public java.lang.String getName() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -171,23 +202,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.redis.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -195,6 +237,7 @@ public com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -227,8 +269,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,19 +279,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.redis.v1beta1.ExportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ExportInstanceRequest other = (com.google.cloud.redis.v1beta1.ExportInstanceRequest) obj; + com.google.cloud.redis.v1beta1.ExportInstanceRequest other = + (com.google.cloud.redis.v1beta1.ExportInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,117 +315,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ExportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.ExportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [Export][google.cloud.redis.v1beta1.CloudRedis.ExportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ExportInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ExportInstanceRequest) com.google.cloud.redis.v1beta1.ExportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ExportInstanceRequest.class, + com.google.cloud.redis.v1beta1.ExportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ExportInstanceRequest.newBuilder() @@ -393,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(); @@ -418,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ExportInstanceRequest_descriptor; } @java.lang.Override @@ -439,7 +487,8 @@ public com.google.cloud.redis.v1beta1.ExportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ExportInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.ExportInstanceRequest result = new com.google.cloud.redis.v1beta1.ExportInstanceRequest(this); + com.google.cloud.redis.v1beta1.ExportInstanceRequest result = + new com.google.cloud.redis.v1beta1.ExportInstanceRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -454,38 +503,39 @@ public com.google.cloud.redis.v1beta1.ExportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ExportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.ExportInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.ExportInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -493,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ExportInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.ExportInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.ExportInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -520,7 +571,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.ExportInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.ExportInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -532,6 +584,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -539,13 +593,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -554,6 +608,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -561,15 +617,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -577,6 +632,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -584,20 +641,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -605,15 +664,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -621,16 +683,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -638,39 +700,58 @@ public Builder setNameBytes( private com.google.cloud.redis.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.OutputConfig, com.google.cloud.redis.v1beta1.OutputConfig.Builder, com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.redis.v1beta1.OutputConfig, + com.google.cloud.redis.v1beta1.OutputConfig.Builder, + com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.redis.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -686,11 +767,15 @@ public Builder setOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig value return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.redis.v1beta1.OutputConfig.Builder builderForValue) { @@ -704,17 +789,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.redis.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -726,11 +817,15 @@ public Builder mergeOutputConfig(com.google.cloud.redis.v1beta1.OutputConfig val return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -744,55 +839,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Specify data to be exported.
      * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.OutputConfig, com.google.cloud.redis.v1beta1.OutputConfig.Builder, com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> + com.google.cloud.redis.v1beta1.OutputConfig, + com.google.cloud.redis.v1beta1.OutputConfig.Builder, + com.google.cloud.redis.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.OutputConfig, com.google.cloud.redis.v1beta1.OutputConfig.Builder, com.google.cloud.redis.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.OutputConfig, + com.google.cloud.redis.v1beta1.OutputConfig.Builder, + com.google.cloud.redis.v1beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ExportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ExportInstanceRequest) private static final com.google.cloud.redis.v1beta1.ExportInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ExportInstanceRequest(); } @@ -816,16 +927,16 @@ public static com.google.cloud.redis.v1beta1.ExportInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ExportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java index 8b524a8d..4c6c5f23 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ExportInstanceRequestOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ExportInstanceRequestOrBuilder extends +public interface ExportInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ExportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -15,10 +33,13 @@ public interface ExportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -26,35 +47,49 @@ public interface ExportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.redis.v1beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. Specify data to be exported.
    * 
* - * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java index 4a4b492c..ec99dcc9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.FailoverInstanceRequest} */ -public final class FailoverInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FailoverInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.FailoverInstanceRequest) FailoverInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FailoverInstanceRequest.newBuilder() to construct. private FailoverInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FailoverInstanceRequest() { name_ = ""; dataProtectionMode_ = 0; @@ -26,16 +44,15 @@ private FailoverInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FailoverInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FailoverInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private FailoverInstanceRequest( 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: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - dataProtectionMode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + dataProtectionMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,41 @@ private FailoverInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); } /** + * + * *
    * Specifies different modes of operation in relation to the data retention.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode} */ - public enum DataProtectionMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -119,6 +143,8 @@ public enum DataProtectionMode
      */
     DATA_PROTECTION_MODE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -130,6 +156,8 @@ public enum DataProtectionMode
      */
     LIMITED_DATA_LOSS(1),
     /**
+     *
+     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -141,6 +169,8 @@ public enum DataProtectionMode ; /** + * + * *
      * Defaults to LIMITED_DATA_LOSS if a data protection mode is not
      * specified.
@@ -150,6 +180,8 @@ public enum DataProtectionMode
      */
     public static final int DATA_PROTECTION_MODE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Instance failover will be protected with data loss control. More
      * specifically, the failover will only be performed if the current
@@ -161,6 +193,8 @@ public enum DataProtectionMode
      */
     public static final int LIMITED_DATA_LOSS_VALUE = 1;
     /**
+     *
+     *
      * 
      * Instance failover will be performed without data loss control.
      * 
@@ -169,7 +203,6 @@ public enum DataProtectionMode */ public static final int FORCE_DATA_LOSS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -194,10 +227,14 @@ public static DataProtectionMode valueOf(int value) { */ public static DataProtectionMode forNumber(int value) { switch (value) { - case 0: return DATA_PROTECTION_MODE_UNSPECIFIED; - case 1: return LIMITED_DATA_LOSS; - case 2: return FORCE_DATA_LOSS; - default: return null; + case 0: + return DATA_PROTECTION_MODE_UNSPECIFIED; + case 1: + return LIMITED_DATA_LOSS; + case 2: + return FORCE_DATA_LOSS; + default: + return null; } } @@ -205,29 +242,31 @@ public static DataProtectionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DataProtectionMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataProtectionMode findValueByNumber(int number) { - return DataProtectionMode.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 DataProtectionMode findValueByNumber(int number) { + return DataProtectionMode.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.redis.v1beta1.FailoverInstanceRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final DataProtectionMode[] VALUES = values(); @@ -235,8 +274,7 @@ public DataProtectionMode findValueByNumber(int number) { public static DataProtectionMode 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; @@ -256,13 +294,18 @@ private DataProtectionMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -271,31 +314,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -306,33 +351,51 @@ public java.lang.String getName() { public static final int DATA_PROTECTION_MODE_FIELD_NUMBER = 2; private int dataProtectionMode_; /** + * + * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override public int getDataProtectionModeValue() { + @java.lang.Override + public int getDataProtectionModeValue() { return dataProtectionMode_; } /** + * + * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProtectionMode. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode + getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); - return result == null ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf( + dataProtectionMode_); + return result == null + ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,12 +407,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (dataProtectionMode_ != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { + if (dataProtectionMode_ + != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode + .DATA_PROTECTION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, dataProtectionMode_); } unknownFields.writeTo(output); @@ -364,9 +429,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (dataProtectionMode_ != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.DATA_PROTECTION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dataProtectionMode_); + if (dataProtectionMode_ + != com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode + .DATA_PROTECTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataProtectionMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -376,15 +443,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.redis.v1beta1.FailoverInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.FailoverInstanceRequest other = (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) obj; + com.google.cloud.redis.v1beta1.FailoverInstanceRequest other = + (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (dataProtectionMode_ != other.dataProtectionMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -407,117 +474,127 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.FailoverInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.redis.v1beta1.FailoverInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.FailoverInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.FailoverInstanceRequest) com.google.cloud.redis.v1beta1.FailoverInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.class, + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.FailoverInstanceRequest.newBuilder() @@ -525,16 +602,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +622,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_FailoverInstanceRequest_descriptor; } @java.lang.Override @@ -567,7 +643,8 @@ public com.google.cloud.redis.v1beta1.FailoverInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.FailoverInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.FailoverInstanceRequest result = new com.google.cloud.redis.v1beta1.FailoverInstanceRequest(this); + com.google.cloud.redis.v1beta1.FailoverInstanceRequest result = + new com.google.cloud.redis.v1beta1.FailoverInstanceRequest(this); result.name_ = name_; result.dataProtectionMode_ = dataProtectionMode_; onBuilt(); @@ -578,38 +655,39 @@ public com.google.cloud.redis.v1beta1.FailoverInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.FailoverInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.FailoverInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.FailoverInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -617,7 +695,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.FailoverInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.FailoverInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -644,7 +723,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.FailoverInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -656,20 +736,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -678,22 +762,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -701,60 +788,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -762,85 +862,117 @@ public Builder setNameBytes( private int dataProtectionMode_ = 0; /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for dataProtectionMode. */ - @java.lang.Override public int getDataProtectionModeValue() { + @java.lang.Override + public int getDataProtectionModeValue() { return dataProtectionMode_; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for dataProtectionMode to set. * @return This builder for chaining. */ public Builder setDataProtectionModeValue(int value) { - + dataProtectionMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProtectionMode. */ @java.lang.Override - public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode() { + public com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode + getDataProtectionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf(dataProtectionMode_); - return result == null ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode result = + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.valueOf( + dataProtectionMode_); + return result == null + ? com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The dataProtectionMode to set. * @return This builder for chaining. */ - public Builder setDataProtectionMode(com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode value) { + public Builder setDataProtectionMode( + com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode value) { if (value == null) { throw new NullPointerException(); } - + dataProtectionMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Available data protection modes that the user can choose. If it's
      * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
      * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDataProtectionMode() { - + dataProtectionMode_ = 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); } @@ -850,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.FailoverInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.FailoverInstanceRequest) private static final com.google.cloud.redis.v1beta1.FailoverInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.FailoverInstanceRequest(); } @@ -864,16 +996,16 @@ public static com.google.cloud.redis.v1beta1.FailoverInstanceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FailoverInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FailoverInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FailoverInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,6 +1020,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.FailoverInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java index 102bf9ea..910f2f6f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequestOrBuilder.java @@ -1,53 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface FailoverInstanceRequestOrBuilder extends +public interface FailoverInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.FailoverInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for dataProtectionMode. */ int getDataProtectionModeValue(); /** + * + * *
    * Optional. Available data protection modes that the user can choose. If it's
    * unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
    * 
* - * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProtectionMode. */ com.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode getDataProtectionMode(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java index ce15fa70..c4601ac1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestination.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * The Cloud Storage location for the output content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsDestination.class, com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); + com.google.cloud.redis.v1beta1.GcsDestination.class, + com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -178,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.redis.v1beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.GcsDestination other = (com.google.cloud.redis.v1beta1.GcsDestination) obj; + com.google.cloud.redis.v1beta1.GcsDestination other = + (com.google.cloud.redis.v1beta1.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsDestination 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.redis.v1beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the output content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GcsDestination) com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsDestination.class, com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); + com.google.cloud.redis.v1beta1.GcsDestination.class, + com.google.cloud.redis.v1beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GcsDestination.newBuilder() @@ -324,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(); @@ -343,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsDestination_descriptor; } @java.lang.Override @@ -364,7 +395,8 @@ public com.google.cloud.redis.v1beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsDestination buildPartial() { - com.google.cloud.redis.v1beta1.GcsDestination result = new com.google.cloud.redis.v1beta1.GcsDestination(this); + com.google.cloud.redis.v1beta1.GcsDestination result = + new com.google.cloud.redis.v1beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.redis.v1beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GcsDestination) { - return mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -449,19 +482,21 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -470,21 +505,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -492,64 +528,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Required. Data destination URI (e.g.
      * 'gs://my_bucket/my_object'). Existing files will be overwritten.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GcsDestination) private static final com.google.cloud.redis.v1beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GcsDestination(); } @@ -573,16 +616,16 @@ public static com.google.cloud.redis.v1beta1.GcsDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java similarity index 53% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java index 7b75932d..828f5bfe 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsDestinationOrBuilder.java @@ -1,31 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. Data destination URI (e.g.
    * 'gs://my_bucket/my_object'). Existing files will be overwritten.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java index f768bec5..3bd73753 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSource.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * The Cloud Storage location for the input content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsSource.class, com.google.cloud.redis.v1beta1.GcsSource.Builder.class); + com.google.cloud.redis.v1beta1.GcsSource.class, + com.google.cloud.redis.v1beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -176,15 +199,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.GcsSource)) { return super.equals(obj); } com.google.cloud.redis.v1beta1.GcsSource other = (com.google.cloud.redis.v1beta1.GcsSource) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +225,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsSource 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.redis.v1beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Storage location for the input content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GcsSource) com.google.cloud.redis.v1beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GcsSource.class, com.google.cloud.redis.v1beta1.GcsSource.Builder.class); + com.google.cloud.redis.v1beta1.GcsSource.class, + com.google.cloud.redis.v1beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GcsSource.newBuilder() @@ -322,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(); @@ -341,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GcsSource_descriptor; } @java.lang.Override @@ -362,7 +392,8 @@ public com.google.cloud.redis.v1beta1.GcsSource build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsSource buildPartial() { - com.google.cloud.redis.v1beta1.GcsSource result = new com.google.cloud.redis.v1beta1.GcsSource(this); + com.google.cloud.redis.v1beta1.GcsSource result = + new com.google.cloud.redis.v1beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -372,38 +403,39 @@ public com.google.cloud.redis.v1beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GcsSource) { - return mergeFrom((com.google.cloud.redis.v1beta1.GcsSource)other); + return mergeFrom((com.google.cloud.redis.v1beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -447,18 +479,20 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -467,20 +501,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -488,61 +523,68 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GcsSource) private static final com.google.cloud.redis.v1beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GcsSource(); } @@ -566,16 +608,16 @@ public static com.google.cloud.redis.v1beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +632,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java similarity index 50% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java index 489b40e5..bdc632b6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GcsSourceOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java index e8cbb4e7..b2dfae77 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [GetInstanceAuthString][google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceAuthStringRequest} */ -public final class GetInstanceAuthStringRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceAuthStringRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) GetInstanceAuthStringRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceAuthStringRequest.newBuilder() to construct. private GetInstanceAuthStringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceAuthStringRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceAuthStringRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstanceAuthStringRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstanceAuthStringRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetInstanceAuthStringRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -111,31 +136,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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.redis.v1beta1.GetInstanceAuthStringRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest other = (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) obj; + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest other = + (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetInstanceAuthString][google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceAuthStringRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.newBuilder() @@ -326,16 +363,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(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest buildPartial() { - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest result = new com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest(this); + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest result = + new com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest other) { - if (other == com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) private static final com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceAuthStringRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceAuthStringRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceAuthStringRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceAuthStringRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java new file mode 100644 index 00000000..7788f8de --- /dev/null +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequestOrBuilder.java @@ -0,0 +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/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface GetInstanceAuthStringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java index 6a31878a..7628ebdd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [GetInstance][google.cloud.redis.v1beta1.CloudRedis.GetInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceRequest} */ -public final class GetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GetInstanceRequest) GetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceRequest.class, com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceRequest.class, + com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -111,31 +136,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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.redis.v1beta1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.GetInstanceRequest other = (com.google.cloud.redis.v1beta1.GetInstanceRequest) obj; + com.google.cloud.redis.v1beta1.GetInstanceRequest other = + (com.google.cloud.redis.v1beta1.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetInstance][google.cloud.redis.v1beta1.CloudRedis.GetInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.GetInstanceRequest) com.google.cloud.redis.v1beta1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.GetInstanceRequest.class, com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.GetInstanceRequest.class, + com.google.cloud.redis.v1beta1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.GetInstanceRequest.newBuilder() @@ -326,16 +362,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(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.redis.v1beta1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.GetInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.GetInstanceRequest result = new com.google.cloud.redis.v1beta1.GetInstanceRequest(this); + com.google.cloud.redis.v1beta1.GetInstanceRequest result = + new com.google.cloud.redis.v1beta1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.redis.v1beta1.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.GetInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +477,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -473,22 +516,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -496,67 +542,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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); } @@ -566,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GetInstanceRequest) private static final com.google.cloud.redis.v1beta1.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GetInstanceRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.redis.v1beta1.GetInstanceRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..cd912363 --- /dev/null +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceRequestOrBuilder.java @@ -0,0 +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/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java index c226d74f..17993618 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [Import][google.cloud.redis.v1beta1.CloudRedis.ImportInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ImportInstanceRequest} */ -public final class ImportInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ImportInstanceRequest) ImportInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportInstanceRequest.newBuilder() to construct. private ImportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private ImportInstanceRequest( 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 26: { - com.google.cloud.redis.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + name_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.redis.v1beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.redis.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.redis.v1beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = 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) { @@ -86,29 +107,33 @@ private ImportInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, + com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -116,6 +141,7 @@ private ImportInstanceRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -124,14 +150,15 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -139,16 +166,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -159,11 +185,16 @@ public java.lang.String getName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.redis.v1beta1.InputConfig inputConfig_; /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -171,23 +202,34 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.redis.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -195,6 +237,7 @@ public com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -227,8 +269,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,19 +279,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.redis.v1beta1.ImportInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ImportInstanceRequest other = (com.google.cloud.redis.v1beta1.ImportInstanceRequest) obj; + com.google.cloud.redis.v1beta1.ImportInstanceRequest other = + (com.google.cloud.redis.v1beta1.ImportInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,117 +315,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ImportInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.ImportInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [Import][google.cloud.redis.v1beta1.CloudRedis.ImportInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ImportInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ImportInstanceRequest) com.google.cloud.redis.v1beta1.ImportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.ImportInstanceRequest.class, + com.google.cloud.redis.v1beta1.ImportInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ImportInstanceRequest.newBuilder() @@ -393,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(); @@ -418,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ImportInstanceRequest_descriptor; } @java.lang.Override @@ -439,7 +487,8 @@ public com.google.cloud.redis.v1beta1.ImportInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ImportInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.ImportInstanceRequest result = new com.google.cloud.redis.v1beta1.ImportInstanceRequest(this); + com.google.cloud.redis.v1beta1.ImportInstanceRequest result = + new com.google.cloud.redis.v1beta1.ImportInstanceRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -454,38 +503,39 @@ public com.google.cloud.redis.v1beta1.ImportInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ImportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.ImportInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.ImportInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -493,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ImportInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.ImportInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.ImportInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -520,7 +571,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.ImportInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.ImportInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -532,6 +584,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -539,13 +593,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -554,6 +608,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -561,15 +617,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -577,6 +632,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -584,20 +641,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -605,15 +664,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -621,16 +683,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -638,39 +700,58 @@ public Builder setNameBytes( private com.google.cloud.redis.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.InputConfig, com.google.cloud.redis.v1beta1.InputConfig.Builder, com.google.cloud.redis.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.redis.v1beta1.InputConfig, + com.google.cloud.redis.v1beta1.InputConfig.Builder, + com.google.cloud.redis.v1beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.redis.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.redis.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -686,11 +767,15 @@ public Builder setInputConfig(com.google.cloud.redis.v1beta1.InputConfig value) return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.redis.v1beta1.InputConfig.Builder builderForValue) { @@ -704,17 +789,23 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.redis.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.redis.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -726,11 +817,15 @@ public Builder mergeInputConfig(com.google.cloud.redis.v1beta1.InputConfig value return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -744,55 +839,71 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Specify data to be imported.
      * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.InputConfig, com.google.cloud.redis.v1beta1.InputConfig.Builder, com.google.cloud.redis.v1beta1.InputConfigOrBuilder> + com.google.cloud.redis.v1beta1.InputConfig, + com.google.cloud.redis.v1beta1.InputConfig.Builder, + com.google.cloud.redis.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.InputConfig, com.google.cloud.redis.v1beta1.InputConfig.Builder, com.google.cloud.redis.v1beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.InputConfig, + com.google.cloud.redis.v1beta1.InputConfig.Builder, + com.google.cloud.redis.v1beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ImportInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ImportInstanceRequest) private static final com.google.cloud.redis.v1beta1.ImportInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ImportInstanceRequest(); } @@ -816,16 +927,16 @@ public static com.google.cloud.redis.v1beta1.ImportInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ImportInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java index 7e7e1a87..0e049843 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ImportInstanceRequestOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ImportInstanceRequestOrBuilder extends +public interface ImportInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ImportInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -15,10 +33,13 @@ public interface ImportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
@@ -26,35 +47,49 @@ public interface ImportInstanceRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.redis.v1beta1.InputConfig getInputConfig(); /** + * + * *
    * Required. Specify data to be imported.
    * 
* - * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java index a37dc70e..d8c8787d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfig.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * The input content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { - } + + private InputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,29 @@ private InputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.redis.v1beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.cloud.redis.v1beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.redis.v1beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.redis.v1beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.redis.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - sourceCase_ = 1; - 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) { @@ -80,34 +98,39 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InputConfig.class, com.google.cloud.redis.v1beta1.InputConfig.Builder.class); + com.google.cloud.redis.v1beta1.InputConfig.class, + com.google.cloud.redis.v1beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -123,29 +146,34 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -153,21 +181,26 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.redis.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsSource) source_; + return (com.google.cloud.redis.v1beta1.GcsSource) source_; } return com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
@@ -177,12 +210,13 @@ public com.google.cloud.redis.v1beta1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsSource) source_; + return (com.google.cloud.redis.v1beta1.GcsSource) source_; } return com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +228,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1beta1.GcsSource) source_); } @@ -209,8 +242,9 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.redis.v1beta1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.redis.v1beta1.GcsSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -220,18 +254,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.redis.v1beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.InputConfig other = (com.google.cloud.redis.v1beta1.InputConfig) obj; + com.google.cloud.redis.v1beta1.InputConfig other = + (com.google.cloud.redis.v1beta1.InputConfig) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -260,118 +294,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.InputConfig 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.redis.v1beta1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 input content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.InputConfig) com.google.cloud.redis.v1beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InputConfig.class, com.google.cloud.redis.v1beta1.InputConfig.Builder.class); + com.google.cloud.redis.v1beta1.InputConfig.class, + com.google.cloud.redis.v1beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.InputConfig.newBuilder() @@ -379,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InputConfig_descriptor; } @java.lang.Override @@ -419,7 +461,8 @@ public com.google.cloud.redis.v1beta1.InputConfig build() { @java.lang.Override public com.google.cloud.redis.v1beta1.InputConfig buildPartial() { - com.google.cloud.redis.v1beta1.InputConfig result = new com.google.cloud.redis.v1beta1.InputConfig(this); + com.google.cloud.redis.v1beta1.InputConfig result = + new com.google.cloud.redis.v1beta1.InputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -436,38 +479,39 @@ public com.google.cloud.redis.v1beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.InputConfig) { - return mergeFrom((com.google.cloud.redis.v1beta1.InputConfig)other); + return mergeFrom((com.google.cloud.redis.v1beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -477,13 +521,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1beta1.InputConfig other) { if (other == com.google.cloud.redis.v1beta1.InputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -513,12 +559,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -528,15 +574,20 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsSource, com.google.cloud.redis.v1beta1.GcsSource.Builder, com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.redis.v1beta1.GcsSource, + com.google.cloud.redis.v1beta1.GcsSource.Builder, + com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -544,11 +595,14 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -566,6 +620,8 @@ public com.google.cloud.redis.v1beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -586,14 +642,15 @@ public Builder setGcsSource(com.google.cloud.redis.v1beta1.GcsSource value) { return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; */ - public Builder setGcsSource( - com.google.cloud.redis.v1beta1.GcsSource.Builder builderForValue) { + public Builder setGcsSource(com.google.cloud.redis.v1beta1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -604,6 +661,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -612,10 +671,13 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.redis.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance()) { - source_ = com.google.cloud.redis.v1beta1.GcsSource.newBuilder((com.google.cloud.redis.v1beta1.GcsSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ != com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.redis.v1beta1.GcsSource.newBuilder( + (com.google.cloud.redis.v1beta1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -631,6 +693,8 @@ public Builder mergeGcsSource(com.google.cloud.redis.v1beta1.GcsSource value) { return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -654,6 +718,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -664,6 +730,8 @@ public com.google.cloud.redis.v1beta1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -682,6 +750,8 @@ public com.google.cloud.redis.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() } } /** + * + * *
      * Google Cloud Storage location where input content is located.
      * 
@@ -689,26 +759,32 @@ public com.google.cloud.redis.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsSource, com.google.cloud.redis.v1beta1.GcsSource.Builder, com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> + com.google.cloud.redis.v1beta1.GcsSource, + com.google.cloud.redis.v1beta1.GcsSource.Builder, + com.google.cloud.redis.v1beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.redis.v1beta1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsSource, com.google.cloud.redis.v1beta1.GcsSource.Builder, com.google.cloud.redis.v1beta1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.GcsSource, + com.google.cloud.redis.v1beta1.GcsSource.Builder, + com.google.cloud.redis.v1beta1.GcsSourceOrBuilder>( (com.google.cloud.redis.v1beta1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged();; + onChanged(); + ; return gcsSourceBuilder_; } + @java.lang.Override - 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 +794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.InputConfig) private static final com.google.cloud.redis.v1beta1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.InputConfig(); } @@ -732,16 +808,16 @@ public static com.google.cloud.redis.v1beta1.InputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +832,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java index 371d5cb2..31977afd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InputConfigOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
* * .google.cloud.redis.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.redis.v1beta1.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location where input content is located.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java index 4935c439..544a09a1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * A Memorystore for Redis instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.Instance} */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.Instance) InstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Instance() { name_ = ""; displayName_ = ""; @@ -44,16 +62,15 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,242 +90,279 @@ private Instance( 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(); - - displayName_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - alternativeLocationId_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - redisVersion_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - reservedIpRange_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - host_ = s; - break; - } - case 88: { + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - currentLocationId_ = s; - break; - } - case 106: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + displayName_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 26: + { + 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 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 112: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 130: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - redisConfigs_ = com.google.protobuf.MapField.newMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + locationId_ = s; + break; } - com.google.protobuf.MapEntry - redisConfigs__ = input.readMessage( - RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - redisConfigs_.getMutableMap().put( - redisConfigs__.getKey(), redisConfigs__.getValue()); - break; - } - case 136: { - int rawValue = input.readEnum(); + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - tier_ = rawValue; - break; - } - case 144: { + alternativeLocationId_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - memorySizeGb_ = input.readInt32(); - break; - } - case 162: { - java.lang.String s = input.readStringRequireUtf8(); + redisVersion_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - authorizedNetwork_ = s; - break; - } - case 170: { - java.lang.String s = input.readStringRequireUtf8(); + reservedIpRange_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - persistenceIamIdentity_ = s; - break; - } - case 176: { - int rawValue = input.readEnum(); + host_ = s; + break; + } + case 88: + { + port_ = input.readInt32(); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - connectMode_ = rawValue; - break; - } - case 184: { + currentLocationId_ = s; + break; + } + case 106: + { + 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 112: + { + int rawValue = input.readEnum(); - authEnabled_ = input.readBool(); - break; - } - case 202: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + state_ = rawValue; + break; } - serverCaCerts_.add( - input.readMessage(com.google.cloud.redis.v1beta1.TlsCertificate.parser(), extensionRegistry)); - break; - } - case 208: { - int rawValue = input.readEnum(); + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - transitEncryptionMode_ = rawValue; - break; - } - case 218: { - com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder subBuilder = null; - if (maintenancePolicy_ != null) { - subBuilder = maintenancePolicy_.toBuilder(); + statusMessage_ = s; + break; } - maintenancePolicy_ = input.readMessage(com.google.cloud.redis.v1beta1.MaintenancePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenancePolicy_); - maintenancePolicy_ = subBuilder.buildPartial(); + case 130: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + redisConfigs_ = + com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry redisConfigs__ = + input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + redisConfigs_.getMutableMap().put(redisConfigs__.getKey(), redisConfigs__.getValue()); + break; } + case 136: + { + int rawValue = input.readEnum(); - break; - } - case 226: { - com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder subBuilder = null; - if (maintenanceSchedule_ != null) { - subBuilder = maintenanceSchedule_.toBuilder(); + tier_ = rawValue; + break; } - maintenanceSchedule_ = input.readMessage(com.google.cloud.redis.v1beta1.MaintenanceSchedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenanceSchedule_); - maintenanceSchedule_ = subBuilder.buildPartial(); + case 144: + { + memorySizeGb_ = input.readInt32(); + break; } + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 242: { - java.lang.String s = input.readStringRequireUtf8(); + authorizedNetwork_ = s; + break; + } + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); - secondaryIpRange_ = s; - break; - } - case 248: { + persistenceIamIdentity_ = s; + break; + } + case 176: + { + int rawValue = input.readEnum(); - replicaCount_ = input.readInt32(); - break; - } - case 258: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + connectMode_ = rawValue; + break; } - nodes_.add( - input.readMessage(com.google.cloud.redis.v1beta1.NodeInfo.parser(), extensionRegistry)); - break; - } - case 266: { - java.lang.String s = input.readStringRequireUtf8(); + case 184: + { + authEnabled_ = input.readBool(); + break; + } + case 202: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + serverCaCerts_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + serverCaCerts_.add( + input.readMessage( + com.google.cloud.redis.v1beta1.TlsCertificate.parser(), extensionRegistry)); + break; + } + case 208: + { + int rawValue = input.readEnum(); - readEndpoint_ = s; - break; - } - case 272: { + transitEncryptionMode_ = rawValue; + break; + } + case 218: + { + com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = + input.readMessage( + com.google.cloud.redis.v1beta1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 226: + { + com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder subBuilder = null; + if (maintenanceSchedule_ != null) { + subBuilder = maintenanceSchedule_.toBuilder(); + } + maintenanceSchedule_ = + input.readMessage( + com.google.cloud.redis.v1beta1.MaintenanceSchedule.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenanceSchedule_); + maintenanceSchedule_ = subBuilder.buildPartial(); + } + + break; + } + case 242: + { + java.lang.String s = input.readStringRequireUtf8(); - readEndpointPort_ = input.readInt32(); - break; - } - case 280: { - int rawValue = input.readEnum(); + secondaryIpRange_ = s; + break; + } + case 248: + { + replicaCount_ = input.readInt32(); + break; + } + case 258: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + nodes_.add( + input.readMessage( + com.google.cloud.redis.v1beta1.NodeInfo.parser(), extensionRegistry)); + break; + } + case 266: + { + java.lang.String s = input.readStringRequireUtf8(); - readReplicasMode_ = rawValue; - break; - } - case 298: { - com.google.cloud.redis.v1beta1.PersistenceConfig.Builder subBuilder = null; - if (persistenceConfig_ != null) { - subBuilder = persistenceConfig_.toBuilder(); + readEndpoint_ = s; + break; } - persistenceConfig_ = input.readMessage(com.google.cloud.redis.v1beta1.PersistenceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(persistenceConfig_); - persistenceConfig_ = subBuilder.buildPartial(); + case 272: + { + readEndpointPort_ = input.readInt32(); + break; } + case 280: + { + int rawValue = input.readEnum(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + readReplicasMode_ = rawValue; + break; + } + case 298: + { + com.google.cloud.redis.v1beta1.PersistenceConfig.Builder subBuilder = null; + if (persistenceConfig_ != null) { + subBuilder = persistenceConfig_.toBuilder(); + } + persistenceConfig_ = + input.readMessage( + com.google.cloud.redis.v1beta1.PersistenceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(persistenceConfig_); + persistenceConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -316,8 +370,7 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { serverCaCerts_ = java.util.Collections.unmodifiableList(serverCaCerts_); @@ -329,43 +382,48 @@ private Instance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_Instance_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 internalGetLabels(); case 16: return internalGetRedisConfigs(); 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.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.Instance.class, com.google.cloud.redis.v1beta1.Instance.Builder.class); + com.google.cloud.redis.v1beta1.Instance.class, + com.google.cloud.redis.v1beta1.Instance.Builder.class); } /** + * + * *
    * Represents the different states of a Redis instance.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -374,6 +432,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Redis instance is being created.
      * 
@@ -382,6 +442,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Redis instance has been created and is fully usable.
      * 
@@ -390,6 +452,8 @@ public enum State */ READY(2), /** + * + * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -400,6 +464,8 @@ public enum State
      */
     UPDATING(3),
     /**
+     *
+     *
      * 
      * Redis instance is being deleted.
      * 
@@ -408,6 +474,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -416,6 +484,8 @@ public enum State */ REPAIRING(5), /** + * + * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -424,6 +494,8 @@ public enum State */ MAINTENANCE(6), /** + * + * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -432,6 +504,8 @@ public enum State */ IMPORTING(8), /** + * + * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -443,6 +517,8 @@ public enum State ; /** + * + * *
      * Not set.
      * 
@@ -451,6 +527,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Redis instance is being created.
      * 
@@ -459,6 +537,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Redis instance has been created and is fully usable.
      * 
@@ -467,6 +547,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * Redis instance configuration is being updated. Certain kinds of updates
      * may cause the instance to become unusable while the update is in
@@ -477,6 +559,8 @@ public enum State
      */
     public static final int UPDATING_VALUE = 3;
     /**
+     *
+     *
      * 
      * Redis instance is being deleted.
      * 
@@ -485,6 +569,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Redis instance is being repaired and may be unusable.
      * 
@@ -493,6 +579,8 @@ public enum State */ public static final int REPAIRING_VALUE = 5; /** + * + * *
      * Maintenance is being performed on this Redis instance.
      * 
@@ -501,6 +589,8 @@ public enum State */ public static final int MAINTENANCE_VALUE = 6; /** + * + * *
      * Redis instance is importing data (availability may be affected).
      * 
@@ -509,6 +599,8 @@ public enum State */ public static final int IMPORTING_VALUE = 8; /** + * + * *
      * Redis instance is failing over (availability may be affected).
      * 
@@ -517,7 +609,6 @@ public enum State */ public static final int FAILING_OVER_VALUE = 10; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -542,55 +633,61 @@ 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 READY; - case 3: return UPDATING; - case 4: return DELETING; - case 5: return REPAIRING; - case 6: return MAINTENANCE; - case 8: return IMPORTING; - case 10: return FAILING_OVER; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return UPDATING; + case 4: + return DELETING; + case 5: + return REPAIRING; + case 6: + return MAINTENANCE; + case 8: + return IMPORTING; + case 10: + return FAILING_OVER; + 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.redis.v1beta1.Instance.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; @@ -608,15 +705,18 @@ private State(int value) { } /** + * + * *
    * Available service tiers to choose from
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.Tier} */ - public enum Tier - implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -625,6 +725,8 @@ public enum Tier */ TIER_UNSPECIFIED(0), /** + * + * *
      * BASIC tier: standalone instance
      * 
@@ -633,6 +735,8 @@ public enum Tier */ BASIC(1), /** + * + * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -644,6 +748,8 @@ public enum Tier ; /** + * + * *
      * Not set.
      * 
@@ -652,6 +758,8 @@ public enum Tier */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * BASIC tier: standalone instance
      * 
@@ -660,6 +768,8 @@ public enum Tier */ public static final int BASIC_VALUE = 1; /** + * + * *
      * STANDARD_HA tier: highly available primary/replica instances
      * 
@@ -668,7 +778,6 @@ public enum Tier */ public static final int STANDARD_HA_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -693,49 +802,49 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: return TIER_UNSPECIFIED; - case 1: return BASIC; - case 3: return STANDARD_HA; - default: return null; + case 0: + return TIER_UNSPECIFIED; + case 1: + return BASIC; + case 3: + return STANDARD_HA; + 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< - Tier> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.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 Tier findValueByNumber(int number) { + return Tier.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(1); } private static final Tier[] VALUES = values(); - public static Tier valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier 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; @@ -753,15 +862,18 @@ private Tier(int value) { } /** + * + * *
    * Available connection modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.ConnectMode} */ - public enum ConnectMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -770,6 +882,8 @@ public enum ConnectMode */ CONNECT_MODE_UNSPECIFIED(0), /** + * + * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -778,6 +892,8 @@ public enum ConnectMode */ DIRECT_PEERING(1), /** + * + * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -791,6 +907,8 @@ public enum ConnectMode
     ;
 
     /**
+     *
+     *
      * 
      * Not set.
      * 
@@ -799,6 +917,8 @@ public enum ConnectMode */ public static final int CONNECT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connect via direct peering to the Memorystore for Redis hosted service.
      * 
@@ -807,6 +927,8 @@ public enum ConnectMode */ public static final int DIRECT_PEERING_VALUE = 1; /** + * + * *
      * Connect your Memorystore for Redis instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -817,7 +939,6 @@ public enum ConnectMode
      */
     public static final int PRIVATE_SERVICE_ACCESS_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -842,49 +963,49 @@ public static ConnectMode valueOf(int value) {
      */
     public static ConnectMode forNumber(int value) {
       switch (value) {
-        case 0: return CONNECT_MODE_UNSPECIFIED;
-        case 1: return DIRECT_PEERING;
-        case 2: return PRIVATE_SERVICE_ACCESS;
-        default: return null;
+        case 0:
+          return CONNECT_MODE_UNSPECIFIED;
+        case 1:
+          return DIRECT_PEERING;
+        case 2:
+          return PRIVATE_SERVICE_ACCESS;
+        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<
-        ConnectMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ConnectMode findValueByNumber(int number) {
-              return ConnectMode.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 ConnectMode findValueByNumber(int number) {
+            return ConnectMode.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(2);
     }
 
     private static final ConnectMode[] VALUES = values();
 
-    public static ConnectMode valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ConnectMode 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;
@@ -902,15 +1023,18 @@ private ConnectMode(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Available TLS modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.TransitEncryptionMode} */ - public enum TransitEncryptionMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -919,6 +1043,8 @@ public enum TransitEncryptionMode */ TRANSIT_ENCRYPTION_MODE_UNSPECIFIED(0), /** + * + * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -927,6 +1053,8 @@ public enum TransitEncryptionMode */ SERVER_AUTHENTICATION(1), /** + * + * *
      * TLS is disabled for the instance.
      * 
@@ -938,6 +1066,8 @@ public enum TransitEncryptionMode ; /** + * + * *
      * Not set.
      * 
@@ -946,6 +1076,8 @@ public enum TransitEncryptionMode */ public static final int TRANSIT_ENCRYPTION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Client to Server traffic encryption enabled with server authentication.
      * 
@@ -954,6 +1086,8 @@ public enum TransitEncryptionMode */ public static final int SERVER_AUTHENTICATION_VALUE = 1; /** + * + * *
      * TLS is disabled for the instance.
      * 
@@ -962,7 +1096,6 @@ public enum TransitEncryptionMode */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -987,10 +1120,14 @@ public static TransitEncryptionMode valueOf(int value) { */ public static TransitEncryptionMode forNumber(int value) { switch (value) { - case 0: return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; - case 1: return SERVER_AUTHENTICATION; - case 2: return DISABLED; - default: return null; + case 0: + return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED; + case 1: + return SERVER_AUTHENTICATION; + case 2: + return DISABLED; + default: + return null; } } @@ -998,28 +1135,28 @@ public static TransitEncryptionMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TransitEncryptionMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransitEncryptionMode findValueByNumber(int number) { - return TransitEncryptionMode.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 TransitEncryptionMode findValueByNumber(int number) { + return TransitEncryptionMode.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(3); } @@ -1028,8 +1165,7 @@ public TransitEncryptionMode findValueByNumber(int number) { public static TransitEncryptionMode 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; @@ -1047,15 +1183,18 @@ private TransitEncryptionMode(int value) { } /** + * + * *
    * Read replicas mode.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.ReadReplicasMode} */ - public enum ReadReplicasMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1065,6 +1204,8 @@ public enum ReadReplicasMode
      */
     READ_REPLICAS_MODE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1074,6 +1215,8 @@ public enum ReadReplicasMode
      */
     READ_REPLICAS_DISABLED(1),
     /**
+     *
+     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1086,6 +1229,8 @@ public enum ReadReplicasMode
     ;
 
     /**
+     *
+     *
      * 
      * If not set, Memorystore Redis backend will default to
      * READ_REPLICAS_DISABLED.
@@ -1095,6 +1240,8 @@ public enum ReadReplicasMode
      */
     public static final int READ_REPLICAS_MODE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * If disabled, read endpoint will not be provided and the instance cannot
      * scale up or down the number of replicas.
@@ -1104,6 +1251,8 @@ public enum ReadReplicasMode
      */
     public static final int READ_REPLICAS_DISABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * If enabled, read endpoint will be provided and the instance can scale
      * up and down the number of replicas. Not valid for basic tier.
@@ -1113,7 +1262,6 @@ public enum ReadReplicasMode
      */
     public static final int READ_REPLICAS_ENABLED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1138,39 +1286,42 @@ public static ReadReplicasMode valueOf(int value) {
      */
     public static ReadReplicasMode forNumber(int value) {
       switch (value) {
-        case 0: return READ_REPLICAS_MODE_UNSPECIFIED;
-        case 1: return READ_REPLICAS_DISABLED;
-        case 2: return READ_REPLICAS_ENABLED;
-        default: return null;
+        case 0:
+          return READ_REPLICAS_MODE_UNSPECIFIED;
+        case 1:
+          return READ_REPLICAS_DISABLED;
+        case 2:
+          return READ_REPLICAS_ENABLED;
+        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<
-        ReadReplicasMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ReadReplicasMode findValueByNumber(int number) {
-              return ReadReplicasMode.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 ReadReplicasMode findValueByNumber(int number) {
+                return ReadReplicasMode.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.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(4);
     }
 
@@ -1179,8 +1330,7 @@ public ReadReplicasMode findValueByNumber(int number) {
     public static ReadReplicasMode 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;
@@ -1200,6 +1350,8 @@ private ReadReplicasMode(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1212,6 +1364,7 @@ private ReadReplicasMode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -1220,14 +1373,15 @@ 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. Unique name of the resource in this scope including project and
    * location using the form:
@@ -1240,16 +1394,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1260,11 +1413,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1273,29 +1429,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; } } /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @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 { @@ -1304,24 +1460,23 @@ public java.lang.String getDisplayName() { } public static final int LABELS_FIELD_NUMBER = 3; + 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.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_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.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_Instance_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_; } @@ -1330,28 +1485,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -1359,11 +1516,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -1371,16 +1529,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -1388,12 +1546,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 3; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1403,6 +1560,8 @@ public java.lang.String getLabelsOrThrow( public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1412,6 +1571,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locationId. */ @java.lang.Override @@ -1420,14 +1580,15 @@ public java.lang.String getLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } } /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -1437,16 +1598,15 @@ public java.lang.String getLocationId() {
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -1457,6 +1617,8 @@ public java.lang.String getLocationId() { public static final int ALTERNATIVE_LOCATION_ID_FIELD_NUMBER = 5; private volatile java.lang.Object alternativeLocationId_; /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1466,6 +1628,7 @@ public java.lang.String getLocationId() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alternativeLocationId. */ @java.lang.Override @@ -1474,14 +1637,15 @@ public java.lang.String getAlternativeLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; } } /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -1491,16 +1655,15 @@ public java.lang.String getAlternativeLocationId() {
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alternativeLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -1511,6 +1674,8 @@ public java.lang.String getAlternativeLocationId() { public static final int REDIS_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object redisVersion_; /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1522,6 +1687,7 @@ public java.lang.String getAlternativeLocationId() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The redisVersion. */ @java.lang.Override @@ -1530,14 +1696,15 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -1549,16 +1716,15 @@ public java.lang.String getRedisVersion() {
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -1569,6 +1735,8 @@ public java.lang.String getRedisVersion() { public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 9; private volatile java.lang.Object reservedIpRange_; /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1581,6 +1749,7 @@ public java.lang.String getRedisVersion() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ @java.lang.Override @@ -1589,14 +1758,15 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -1609,16 +1779,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1629,6 +1798,8 @@ public java.lang.String getReservedIpRange() { public static final int SECONDARY_IP_RANGE_FIELD_NUMBER = 30; private volatile java.lang.Object secondaryIpRange_; /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1638,6 +1809,7 @@ public java.lang.String getReservedIpRange() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The secondaryIpRange. */ @java.lang.Override @@ -1646,14 +1818,15 @@ public java.lang.String getSecondaryIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; } } /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -1663,16 +1836,15 @@ public java.lang.String getSecondaryIpRange() {
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for secondaryIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -1683,12 +1855,15 @@ public java.lang.String getSecondaryIpRange() { public static final int HOST_FIELD_NUMBER = 10; private volatile java.lang.Object host_; /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -1697,30 +1872,30 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -1731,11 +1906,14 @@ public java.lang.String getHost() { public static final int PORT_FIELD_NUMBER = 11; private int port_; /** + * + * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -1746,6 +1924,8 @@ public int getPort() { public static final int CURRENT_LOCATION_ID_FIELD_NUMBER = 12; private volatile java.lang.Object currentLocationId_; /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1753,6 +1933,7 @@ public int getPort() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The currentLocationId. */ @java.lang.Override @@ -1761,14 +1942,15 @@ public java.lang.String getCurrentLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; } } /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -1776,16 +1958,15 @@ public java.lang.String getCurrentLocationId() {
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for currentLocationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -1796,11 +1977,15 @@ public java.lang.String getCurrentLocationId() { public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1808,11 +1993,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1820,11 +2009,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1834,39 +2026,55 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 14; private int state_; /** + * + * *
    * Output only. The current state of this instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.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 current state of this instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.State getState() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.State result = com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1beta1.Instance.State result = + com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1beta1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 15; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -1875,30 +2083,30 @@ 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. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.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 { @@ -1907,21 +2115,22 @@ public java.lang.String getStatusMessage() { } public static final int REDIS_CONFIGS_FIELD_NUMBER = 16; + private static final class RedisConfigsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_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.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_Instance_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> redisConfigs_; + + private com.google.protobuf.MapField redisConfigs_; + private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); @@ -1933,6 +2142,8 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -1950,24 +2161,25 @@ public int getRedisConfigsCount() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsRedisConfigs( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetRedisConfigs().getMap().containsKey(key); } - /** - * Use {@link #getRedisConfigsMap()} instead. - */ + /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -1985,14 +2197,16 @@ public java.util.Map getRedisConfigs() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2010,19 +2224,21 @@ public java.util.Map getRedisConfigsMap() {
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -2040,15 +2256,15 @@ public java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getRedisConfigsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2058,38 +2274,54 @@ public java.lang.String getRedisConfigsOrThrow( public static final int TIER_FIELD_NUMBER = 17; private int tier_; /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tier. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.Tier getTier() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.Tier result = com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1beta1.Instance.Tier result = + com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1beta1.Instance.Tier.UNRECOGNIZED : result; } public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 18; private int memorySizeGb_; /** + * + * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeGb. */ @java.lang.Override @@ -2100,6 +2332,8 @@ public int getMemorySizeGb() { public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 20; private volatile java.lang.Object authorizedNetwork_; /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2108,6 +2342,7 @@ public int getMemorySizeGb() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authorizedNetwork. */ @java.lang.Override @@ -2116,14 +2351,15 @@ public java.lang.String getAuthorizedNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; } } /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -2132,16 +2368,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for authorizedNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -2152,6 +2387,8 @@ public java.lang.String getAuthorizedNetwork() { public static final int PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER = 21; private volatile java.lang.Object persistenceIamIdentity_; /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2161,6 +2398,7 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The persistenceIamIdentity. */ @java.lang.Override @@ -2169,14 +2407,15 @@ public java.lang.String getPersistenceIamIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; } } /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -2186,16 +2425,15 @@ public java.lang.String getPersistenceIamIdentity() {
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for persistenceIamIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString - getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -2206,35 +2444,52 @@ public java.lang.String getPersistenceIamIdentity() { public static final int CONNECT_MODE_FIELD_NUMBER = 22; private int connectMode_; /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override public int getConnectModeValue() { + @java.lang.Override + public int getConnectModeValue() { return connectMode_; } /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectMode. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ConnectMode result = com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); - return result == null ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.Instance.ConnectMode result = + com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); + return result == null + ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED + : result; } public static final int AUTH_ENABLED_FIELD_NUMBER = 23; private boolean authEnabled_; /** + * + * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -2242,6 +2497,7 @@ public java.lang.String getPersistenceIamIdentity() {
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authEnabled. */ @java.lang.Override @@ -2252,56 +2508,76 @@ public boolean getAuthEnabled() { public static final int SERVER_CA_CERTS_FIELD_NUMBER = 25; private java.util.List serverCaCerts_; /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getServerCaCertsList() { return serverCaCerts_; } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getServerCaCertsOrBuilderList() { return serverCaCerts_; } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getServerCaCertsCount() { return serverCaCerts_.size(); } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) { return serverCaCerts_.get(index); } /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( @@ -2312,41 +2588,62 @@ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOr public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 26; private int transitEncryptionMode_; /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override public int getTransitEncryptionModeValue() { + @java.lang.Override + public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitEncryptionMode. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); - return result == null ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = + com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf( + transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED + : result; } public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 27; private com.google.cloud.redis.v1beta1.MaintenancePolicy maintenancePolicy_; /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maintenancePolicy field is set. */ @java.lang.Override @@ -2354,25 +2651,36 @@ public boolean hasMaintenancePolicy() { return maintenancePolicy_ != null; } /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maintenancePolicy. */ @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + return maintenancePolicy_ == null + ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { @@ -2382,12 +2690,17 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenanceP public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 28; private com.google.cloud.redis.v1beta1.MaintenanceSchedule maintenanceSchedule_; /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the maintenanceSchedule field is set. */ @java.lang.Override @@ -2395,34 +2708,48 @@ public boolean hasMaintenanceSchedule() { return maintenanceSchedule_ != null; } /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The maintenanceSchedule. */ @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule() { - return maintenanceSchedule_ == null ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; + return maintenanceSchedule_ == null + ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { + public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { return getMaintenanceSchedule(); } public static final int REPLICA_COUNT_FIELD_NUMBER = 31; private int replicaCount_; /** + * + * *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -2432,6 +2759,7 @@ public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanc
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ @java.lang.Override @@ -2442,66 +2770,87 @@ public int getReplicaCount() { public static final int NODES_FIELD_NUMBER = 32; private java.util.List nodes_; /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getNodesOrBuilderList() { return nodes_; } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) { return nodes_.get(index); } /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index) { return nodes_.get(index); } public static final int READ_ENDPOINT_FIELD_NUMBER = 33; private volatile java.lang.Object readEndpoint_; /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2510,6 +2859,7 @@ public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpoint. */ @java.lang.Override @@ -2518,14 +2868,15 @@ public java.lang.String getReadEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; } } /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -2534,16 +2885,15 @@ public java.lang.String getReadEndpoint() {
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for readEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getReadEndpointBytes() { + public com.google.protobuf.ByteString getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -2554,12 +2904,15 @@ public java.lang.String getReadEndpoint() { public static final int READ_ENDPOINT_PORT_FIELD_NUMBER = 34; private int readEndpointPort_; /** + * + * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpointPort. */ @java.lang.Override @@ -2570,38 +2923,58 @@ public int getReadEndpointPort() { public static final int READ_REPLICAS_MODE_FIELD_NUMBER = 35; private int readReplicasMode_; /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override public int getReadReplicasModeValue() { + @java.lang.Override + public int getReadReplicasModeValue() { return readReplicasMode_; } /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readReplicasMode. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = + com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null + ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED + : result; } public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 37; private com.google.cloud.redis.v1beta1.PersistenceConfig persistenceConfig_; /** + * + * *
    * Optional. Persistence configuration parameters
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the persistenceConfig field is set. */ @java.lang.Override @@ -2609,23 +2982,34 @@ public boolean hasPersistenceConfig() { return persistenceConfig_ != null; } /** + * + * *
    * Optional. Persistence configuration parameters
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The persistenceConfig. */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig() { - return persistenceConfig_ == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() : persistenceConfig_; + return persistenceConfig_ == null + ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() + : persistenceConfig_; } /** + * + * *
    * Optional. Persistence configuration parameters
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder() { @@ -2633,6 +3017,7 @@ public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceC } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2644,20 +3029,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); } @@ -2688,12 +3068,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, statusMessage_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRedisConfigs(), - RedisConfigsDefaultEntryHolder.defaultEntry, - 16); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 16); if (tier_ != com.google.cloud.redis.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(17, tier_); } @@ -2706,7 +3082,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, persistenceIamIdentity_); } - if (connectMode_ != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + if (connectMode_ + != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(22, connectMode_); } if (authEnabled_ != false) { @@ -2715,7 +3093,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < serverCaCerts_.size(); i++) { output.writeMessage(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { + if (transitEncryptionMode_ + != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { @@ -2739,7 +3120,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (readEndpointPort_ != 0) { output.writeInt32(34, readEndpointPort_); } - if (readReplicasMode_ != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { + if (readReplicasMode_ + != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(35, readReplicasMode_); } if (persistenceConfig_ != null) { @@ -2760,15 +3143,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - 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(3, labels__); + 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(3, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); @@ -2786,40 +3169,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentLocationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currentLocationId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } if (state_ != com.google.cloud.redis.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, statusMessage_); } - for (java.util.Map.Entry entry - : internalGetRedisConfigs().getMap().entrySet()) { - com.google.protobuf.MapEntry - redisConfigs__ = RedisConfigsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, redisConfigs__); + for (java.util.Map.Entry entry : + internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry redisConfigs__ = + RedisConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, redisConfigs__); } if (tier_ != com.google.cloud.redis.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, tier_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, tier_); } if (memorySizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, memorySizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, memorySizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, authorizedNetwork_); @@ -2827,55 +3205,52 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistenceIamIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, persistenceIamIdentity_); } - if (connectMode_ != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(22, connectMode_); + if (connectMode_ + != com.google.cloud.redis.v1beta1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, connectMode_); } if (authEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, authEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, authEnabled_); } for (int i = 0; i < serverCaCerts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, serverCaCerts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, serverCaCerts_.get(i)); } - if (transitEncryptionMode_ != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.TRANSIT_ENCRYPTION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(26, transitEncryptionMode_); + if (transitEncryptionMode_ + != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, transitEncryptionMode_); } if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getMaintenancePolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaintenancePolicy()); } if (maintenanceSchedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getMaintenanceSchedule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMaintenanceSchedule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, secondaryIpRange_); } if (replicaCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(31, replicaCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(31, replicaCount_); } for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, nodes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, readEndpoint_); } if (readEndpointPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(34, readEndpointPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(34, readEndpointPort_); } - if (readReplicasMode_ != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(35, readReplicasMode_); + if (readReplicasMode_ + != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, readReplicasMode_); } if (persistenceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getPersistenceConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPersistenceConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2885,81 +3260,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.Instance)) { return super.equals(obj); } com.google.cloud.redis.v1beta1.Instance other = (com.google.cloud.redis.v1beta1.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getLocationId() - .equals(other.getLocationId())) return false; - if (!getAlternativeLocationId() - .equals(other.getAlternativeLocationId())) return false; - if (!getRedisVersion() - .equals(other.getRedisVersion())) return false; - if (!getReservedIpRange() - .equals(other.getReservedIpRange())) return false; - if (!getSecondaryIpRange() - .equals(other.getSecondaryIpRange())) return false; - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; - if (!getCurrentLocationId() - .equals(other.getCurrentLocationId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLocationId().equals(other.getLocationId())) return false; + if (!getAlternativeLocationId().equals(other.getAlternativeLocationId())) return false; + if (!getRedisVersion().equals(other.getRedisVersion())) return false; + if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; + if (!getSecondaryIpRange().equals(other.getSecondaryIpRange())) return false; + if (!getHost().equals(other.getHost())) return false; + if (getPort() != other.getPort()) return false; + if (!getCurrentLocationId().equals(other.getCurrentLocationId())) 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 (state_ != other.state_) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (!internalGetRedisConfigs().equals( - other.internalGetRedisConfigs())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; if (tier_ != other.tier_) return false; - if (getMemorySizeGb() - != other.getMemorySizeGb()) return false; - if (!getAuthorizedNetwork() - .equals(other.getAuthorizedNetwork())) return false; - if (!getPersistenceIamIdentity() - .equals(other.getPersistenceIamIdentity())) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; + if (!getPersistenceIamIdentity().equals(other.getPersistenceIamIdentity())) return false; if (connectMode_ != other.connectMode_) return false; - if (getAuthEnabled() - != other.getAuthEnabled()) return false; - if (!getServerCaCertsList() - .equals(other.getServerCaCertsList())) return false; + if (getAuthEnabled() != other.getAuthEnabled()) return false; + if (!getServerCaCertsList().equals(other.getServerCaCertsList())) return false; if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; if (hasMaintenancePolicy()) { - if (!getMaintenancePolicy() - .equals(other.getMaintenancePolicy())) return false; + if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; } if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false; if (hasMaintenanceSchedule()) { - if (!getMaintenanceSchedule() - .equals(other.getMaintenanceSchedule())) return false; - } - if (getReplicaCount() - != other.getReplicaCount()) return false; - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getReadEndpoint() - .equals(other.getReadEndpoint())) return false; - if (getReadEndpointPort() - != other.getReadEndpointPort()) return false; + if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) return false; + } + if (getReplicaCount() != other.getReplicaCount()) return false; + if (!getNodesList().equals(other.getNodesList())) return false; + if (!getReadEndpoint().equals(other.getReadEndpoint())) return false; + if (getReadEndpointPort() != other.getReadEndpointPort()) return false; if (readReplicasMode_ != other.readReplicasMode_) return false; if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; if (hasPersistenceConfig()) { - if (!getPersistenceConfig() - .equals(other.getPersistenceConfig())) return false; + if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3019,8 +3368,7 @@ public int hashCode() { hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER; hash = (53 * hash) + connectMode_; hash = (37 * hash) + AUTH_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAuthEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAuthEnabled()); if (getServerCaCertsCount() > 0) { hash = (37 * hash) + SERVER_CA_CERTS_FIELD_NUMBER; hash = (53 * hash) + getServerCaCertsList().hashCode(); @@ -3056,144 +3404,151 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.Instance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.Instance 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.redis.v1beta1.Instance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Memorystore for Redis instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.Instance) com.google.cloud.redis.v1beta1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetLabels(); case 16: return internalGetRedisConfigs(); 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 internalGetMutableLabels(); case 16: return internalGetMutableRedisConfigs(); 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.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.Instance.class, com.google.cloud.redis.v1beta1.Instance.Builder.class); + com.google.cloud.redis.v1beta1.Instance.class, + com.google.cloud.redis.v1beta1.Instance.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.Instance.newBuilder() @@ -3201,18 +3556,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getServerCaCertsFieldBuilder(); getNodesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3304,9 +3659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_Instance_descriptor; } @java.lang.Override @@ -3325,7 +3680,8 @@ public com.google.cloud.redis.v1beta1.Instance build() { @java.lang.Override public com.google.cloud.redis.v1beta1.Instance buildPartial() { - com.google.cloud.redis.v1beta1.Instance result = new com.google.cloud.redis.v1beta1.Instance(this); + com.google.cloud.redis.v1beta1.Instance result = + new com.google.cloud.redis.v1beta1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -3400,38 +3756,39 @@ public com.google.cloud.redis.v1beta1.Instance buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.Instance) { - return mergeFrom((com.google.cloud.redis.v1beta1.Instance)other); + return mergeFrom((com.google.cloud.redis.v1beta1.Instance) other); } else { super.mergeFrom(other); return this; @@ -3448,8 +3805,7 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); @@ -3491,8 +3847,7 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { statusMessage_ = other.statusMessage_; onChanged(); } - internalGetMutableRedisConfigs().mergeFrom( - other.internalGetRedisConfigs()); + internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); if (other.tier_ != 0) { setTierValue(other.getTierValue()); } @@ -3531,9 +3886,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { serverCaCertsBuilder_ = null; serverCaCerts_ = other.serverCaCerts_; bitField0_ = (bitField0_ & ~0x00000004); - serverCaCertsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServerCaCertsFieldBuilder() : null; + serverCaCertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServerCaCertsFieldBuilder() + : null; } else { serverCaCertsBuilder_.addAllMessages(other.serverCaCerts_); } @@ -3569,9 +3925,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000008); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -3618,10 +3975,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3634,13 +3994,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -3649,6 +4009,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3661,15 +4023,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -3677,6 +4038,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3689,20 +4052,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3715,15 +4080,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -3736,16 +4104,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -3753,18 +4121,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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; @@ -3773,20 +4143,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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 { @@ -3794,75 +4165,81 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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; } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * An arbitrary and optional user-provided name for the instance.
      * 
* * string display_name = 2; + * * @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.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(); @@ -3874,28 +4251,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
@@ -3903,11 +4282,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
@@ -3915,16 +4295,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
@@ -3932,12 +4313,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 3; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3945,69 +4325,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Resource labels to represent user provided metadata
      * 
* * map<string, string> labels = 3; */ - - 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 locationId_ = ""; /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4017,13 +4396,13 @@ public Builder putAllLabels(
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; @@ -4032,6 +4411,8 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4041,15 +4422,14 @@ public java.lang.String getLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -4057,6 +4437,8 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4066,20 +4448,22 @@ public java.lang.String getLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId( - java.lang.String value) { + public Builder setLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4089,15 +4473,18 @@ public Builder setLocationId(
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** + * + * *
      * Optional. The zone where the instance will be provisioned. If not provided,
      * the service will choose a zone from the specified region for the instance.
@@ -4107,16 +4494,16 @@ public Builder clearLocationId() {
      * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -4124,6 +4511,8 @@ public Builder setLocationIdBytes( private java.lang.Object alternativeLocationId_ = ""; /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4133,13 +4522,13 @@ public Builder setLocationIdBytes(
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alternativeLocationId. */ public java.lang.String getAlternativeLocationId() { java.lang.Object ref = alternativeLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeLocationId_ = s; return s; @@ -4148,6 +4537,8 @@ public java.lang.String getAlternativeLocationId() { } } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4157,15 +4548,14 @@ public java.lang.String getAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alternativeLocationId. */ - public com.google.protobuf.ByteString - getAlternativeLocationIdBytes() { + public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { java.lang.Object ref = alternativeLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alternativeLocationId_ = b; return b; } else { @@ -4173,6 +4563,8 @@ public java.lang.String getAlternativeLocationId() { } } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4182,20 +4574,22 @@ public java.lang.String getAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationId( - java.lang.String value) { + public Builder setAlternativeLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + alternativeLocationId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4205,15 +4599,18 @@ public Builder setAlternativeLocationId(
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAlternativeLocationId() { - + alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId(); onChanged(); return this; } /** + * + * *
      * Optional. If specified, at least one node will be provisioned in this zone
      * in addition to the zone specified in location_id. Only applicable to
@@ -4223,16 +4620,16 @@ public Builder clearAlternativeLocationId() {
      * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for alternativeLocationId to set. * @return This builder for chaining. */ - public Builder setAlternativeLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alternativeLocationId_ = value; onChanged(); return this; @@ -4240,6 +4637,8 @@ public Builder setAlternativeLocationIdBytes( private java.lang.Object redisVersion_ = ""; /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4251,13 +4650,13 @@ public Builder setAlternativeLocationIdBytes(
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -4266,6 +4665,8 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4277,15 +4678,14 @@ public java.lang.String getRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -4293,6 +4693,8 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4304,20 +4706,22 @@ public java.lang.String getRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion( - java.lang.String value) { + public Builder setRedisVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4329,15 +4733,18 @@ public Builder setRedisVersion(
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The version of Redis software.
      * If not provided, latest supported version will be used. Currently, the
@@ -4349,16 +4756,16 @@ public Builder clearRedisVersion() {
      * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = value; onChanged(); return this; @@ -4366,6 +4773,8 @@ public Builder setRedisVersionBytes( private java.lang.Object reservedIpRange_ = ""; /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4378,13 +4787,13 @@ public Builder setRedisVersionBytes(
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -4393,6 +4802,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4405,15 +4816,14 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -4421,6 +4831,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4433,20 +4845,22 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange( - java.lang.String value) { + public Builder setReservedIpRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4459,15 +4873,18 @@ public Builder setReservedIpRange(
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** + * + * *
      * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
      * that are reserved for this instance. Range must
@@ -4480,16 +4897,16 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; @@ -4497,6 +4914,8 @@ public Builder setReservedIpRangeBytes( private java.lang.Object secondaryIpRange_ = ""; /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4506,13 +4925,13 @@ public Builder setReservedIpRangeBytes(
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The secondaryIpRange. */ public java.lang.String getSecondaryIpRange() { java.lang.Object ref = secondaryIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryIpRange_ = s; return s; @@ -4521,6 +4940,8 @@ public java.lang.String getSecondaryIpRange() { } } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4530,15 +4951,14 @@ public java.lang.String getSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for secondaryIpRange. */ - public com.google.protobuf.ByteString - getSecondaryIpRangeBytes() { + public com.google.protobuf.ByteString getSecondaryIpRangeBytes() { java.lang.Object ref = secondaryIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secondaryIpRange_ = b; return b; } else { @@ -4546,6 +4966,8 @@ public java.lang.String getSecondaryIpRange() { } } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4555,20 +4977,22 @@ public java.lang.String getSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRange( - java.lang.String value) { + public Builder setSecondaryIpRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secondaryIpRange_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4578,15 +5002,18 @@ public Builder setSecondaryIpRange(
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSecondaryIpRange() { - + secondaryIpRange_ = getDefaultInstance().getSecondaryIpRange(); onChanged(); return this; } /** + * + * *
      * Optional. Additional IP range for node placement. Required when enabling read
      * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -4596,16 +5023,16 @@ public Builder clearSecondaryIpRange() {
      * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for secondaryIpRange to set. * @return This builder for chaining. */ - public Builder setSecondaryIpRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryIpRange_ = value; onChanged(); return this; @@ -4613,19 +5040,21 @@ public Builder setSecondaryIpRangeBytes( private java.lang.Object host_ = ""; /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -4634,21 +5063,22 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -4656,69 +5086,79 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { + public Builder setHost(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed Redis endpoint used by
      *  clients to connect to the service.
      * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { + public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_ ; + private int port_; /** + * + * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -4726,30 +5166,36 @@ public int getPort() { return port_; } /** + * + * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The port number of the exposed Redis endpoint.
      * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -4757,6 +5203,8 @@ public Builder clearPort() { private java.lang.Object currentLocationId_ = ""; /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4764,13 +5212,13 @@ public Builder clearPort() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The currentLocationId. */ public java.lang.String getCurrentLocationId() { java.lang.Object ref = currentLocationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentLocationId_ = s; return s; @@ -4779,6 +5227,8 @@ public java.lang.String getCurrentLocationId() { } } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4786,15 +5236,14 @@ public java.lang.String getCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for currentLocationId. */ - public com.google.protobuf.ByteString - getCurrentLocationIdBytes() { + public com.google.protobuf.ByteString getCurrentLocationIdBytes() { java.lang.Object ref = currentLocationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentLocationId_ = b; return b; } else { @@ -4802,6 +5251,8 @@ public java.lang.String getCurrentLocationId() { } } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4809,20 +5260,22 @@ public java.lang.String getCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationId( - java.lang.String value) { + public Builder setCurrentLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currentLocationId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4830,15 +5283,18 @@ public Builder setCurrentLocationId(
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCurrentLocationId() { - + currentLocationId_ = getDefaultInstance().getCurrentLocationId(); onChanged(); return this; } /** + * + * *
      * Output only. The current zone where the Redis primary node is located. In
      * basic tier, this will always be the same as [location_id]. In
@@ -4846,16 +5302,16 @@ public Builder clearCurrentLocationId() {
      * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for currentLocationId to set. * @return This builder for chaining. */ - public Builder setCurrentLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currentLocationId_ = value; onChanged(); return this; @@ -4863,39 +5319,58 @@ public Builder setCurrentLocationIdBytes( 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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4911,14 +5386,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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(); @@ -4929,17 +5407,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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; } @@ -4951,11 +5433,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4969,48 +5455,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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_; @@ -5018,51 +5520,73 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The current state of this instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.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 current state of this instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.State result = com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.redis.v1beta1.Instance.State result = + com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.redis.v1beta1.Instance.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of this instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -5070,21 +5594,26 @@ public Builder setState(com.google.cloud.redis.v1beta1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of this instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -5092,19 +5621,21 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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; @@ -5113,21 +5644,22 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 { @@ -5135,78 +5667,87 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the current status of this
      * instance, if available.
      * 
* * string status_message = 15 [(.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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> redisConfigs_; + private com.google.protobuf.MapField redisConfigs_; + private com.google.protobuf.MapField - internalGetRedisConfigs() { + internalGetRedisConfigs() { if (redisConfigs_ == null) { return com.google.protobuf.MapField.emptyMapField( RedisConfigsDefaultEntryHolder.defaultEntry); } return redisConfigs_; } + private com.google.protobuf.MapField - internalGetMutableRedisConfigs() { - onChanged();; + internalGetMutableRedisConfigs() { + onChanged(); + ; if (redisConfigs_ == null) { - redisConfigs_ = com.google.protobuf.MapField.newMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); + redisConfigs_ = + com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); } if (!redisConfigs_.isMutable()) { redisConfigs_ = redisConfigs_.copy(); @@ -5218,6 +5759,8 @@ public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5235,24 +5778,25 @@ public int getRedisConfigsCount() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsRedisConfigs( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetRedisConfigs().getMap().containsKey(key); } - /** - * Use {@link #getRedisConfigsMap()} instead. - */ + /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRedisConfigs() { return getRedisConfigsMap(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5270,14 +5814,16 @@ public java.util.Map getRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5295,19 +5841,21 @@ public java.util.Map getRedisConfigsMap() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5325,15 +5873,15 @@ public java.lang.String getRedisConfigsOrDefault(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getRedisConfigsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRedisConfigs().getMap(); + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5341,11 +5889,12 @@ public java.lang.String getRedisConfigsOrThrow( } public Builder clearRedisConfigs() { - internalGetMutableRedisConfigs().getMutableMap() - .clear(); + internalGetMutableRedisConfigs().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5363,25 +5912,24 @@ public Builder clearRedisConfigs() {
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeRedisConfigs( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableRedisConfigs().getMutableMap() - .remove(key); + public Builder removeRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRedisConfigs().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableRedisConfigs() { + public java.util.Map getMutableRedisConfigs() { return internalGetMutableRedisConfigs().getMutableMap(); } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5399,21 +5947,23 @@ public Builder removeRedisConfigs(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putRedisConfigs( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableRedisConfigs().getMutableMap() - .put(key, value); + internalGetMutableRedisConfigs().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Redis configuration parameters, according to
      * http://redis.io/topics/config. Currently, the only supported parameters
@@ -5431,63 +5981,83 @@ public Builder putRedisConfigs(
      *  *   stream-node-max-entries
      * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllRedisConfigs( - java.util.Map values) { - internalGetMutableRedisConfigs().getMutableMap() - .putAll(values); + public Builder putAllRedisConfigs(java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap().putAll(values); return this; } private int tier_ = 0; /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tier. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.Tier result = com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); + com.google.cloud.redis.v1beta1.Instance.Tier result = + com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.redis.v1beta1.Instance.Tier.UNRECOGNIZED : result; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The tier to set. * @return This builder for chaining. */ @@ -5495,33 +6065,41 @@ public Builder setTier(com.google.cloud.redis.v1beta1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The service tier of the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; } - private int memorySizeGb_ ; + private int memorySizeGb_; /** + * + * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeGb. */ @java.lang.Override @@ -5529,30 +6107,36 @@ public int getMemorySizeGb() { return memorySizeGb_; } /** + * + * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The memorySizeGb to set. * @return This builder for chaining. */ public Builder setMemorySizeGb(int value) { - + memorySizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Required. Redis memory size in GiB.
      * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMemorySizeGb() { - + memorySizeGb_ = 0; onChanged(); return this; @@ -5560,6 +6144,8 @@ public Builder clearMemorySizeGb() { private java.lang.Object authorizedNetwork_ = ""; /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5568,13 +6154,13 @@ public Builder clearMemorySizeGb() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authorizedNetwork. */ public java.lang.String getAuthorizedNetwork() { java.lang.Object ref = authorizedNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizedNetwork_ = s; return s; @@ -5583,6 +6169,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5591,15 +6179,14 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for authorizedNetwork. */ - public com.google.protobuf.ByteString - getAuthorizedNetworkBytes() { + public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { java.lang.Object ref = authorizedNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizedNetwork_ = b; return b; } else { @@ -5607,6 +6194,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5615,20 +6204,22 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetwork( - java.lang.String value) { + public Builder setAuthorizedNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizedNetwork_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5637,15 +6228,18 @@ public Builder setAuthorizedNetwork(
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** + * + * *
      * Optional. The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5654,16 +6248,16 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for authorizedNetwork to set. * @return This builder for chaining. */ - public Builder setAuthorizedNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizedNetwork_ = value; onChanged(); return this; @@ -5671,6 +6265,8 @@ public Builder setAuthorizedNetworkBytes( private java.lang.Object persistenceIamIdentity_ = ""; /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5679,14 +6275,15 @@ public Builder setAuthorizedNetworkBytes(
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The persistenceIamIdentity. */ public java.lang.String getPersistenceIamIdentity() { java.lang.Object ref = persistenceIamIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); persistenceIamIdentity_ = s; return s; @@ -5695,6 +6292,8 @@ public java.lang.String getPersistenceIamIdentity() { } } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5703,16 +6302,16 @@ public java.lang.String getPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for persistenceIamIdentity. */ - public com.google.protobuf.ByteString - getPersistenceIamIdentityBytes() { + public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { java.lang.Object ref = persistenceIamIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistenceIamIdentity_ = b; return b; } else { @@ -5720,6 +6319,8 @@ public java.lang.String getPersistenceIamIdentity() { } } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5728,21 +6329,24 @@ public java.lang.String getPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentity( - java.lang.String value) { + public Builder setPersistenceIamIdentity(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + persistenceIamIdentity_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5751,16 +6355,20 @@ public Builder setPersistenceIamIdentity(
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPersistenceIamIdentity() { - + persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity(); onChanged(); return this; } /** + * + * *
      * Output only. Cloud IAM identity used by import / export operations to
      * transfer data to/from Cloud Storage. Format is
@@ -5769,17 +6377,18 @@ public Builder clearPersistenceIamIdentity() {
      * operation.
      * 
* - * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for persistenceIamIdentity to set. * @return This builder for chaining. */ - public Builder setPersistenceIamIdentityBytes( - com.google.protobuf.ByteString value) { + public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + persistenceIamIdentity_ = value; onChanged(); return this; @@ -5787,55 +6396,79 @@ public Builder setPersistenceIamIdentityBytes( private int connectMode_ = 0; /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override public int getConnectModeValue() { + @java.lang.Override + public int getConnectModeValue() { return connectMode_; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for connectMode to set. * @return This builder for chaining. */ public Builder setConnectModeValue(int value) { - + connectMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectMode. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ConnectMode result = com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); - return result == null ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.Instance.ConnectMode result = + com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_); + return result == null + ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The connectMode to set. * @return This builder for chaining. */ @@ -5843,29 +6476,36 @@ public Builder setConnectMode(com.google.cloud.redis.v1beta1.Instance.ConnectMod if (value == null) { throw new NullPointerException(); } - + connectMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The network connect mode of the Redis instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearConnectMode() { - + connectMode_ = 0; onChanged(); return this; } - private boolean authEnabled_ ; + private boolean authEnabled_; /** + * + * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -5873,6 +6513,7 @@ public Builder clearConnectMode() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authEnabled. */ @java.lang.Override @@ -5880,6 +6521,8 @@ public boolean getAuthEnabled() { return authEnabled_; } /** + * + * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -5887,16 +6530,19 @@ public boolean getAuthEnabled() {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The authEnabled to set. * @return This builder for chaining. */ public Builder setAuthEnabled(boolean value) { - + authEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
      * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -5904,33 +6550,43 @@ public Builder setAuthEnabled(boolean value) {
      * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAuthEnabled() { - + authEnabled_ = false; onChanged(); return this; } private java.util.List serverCaCerts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureServerCaCertsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - serverCaCerts_ = new java.util.ArrayList(serverCaCerts_); + serverCaCerts_ = + new java.util.ArrayList(serverCaCerts_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.TlsCertificate, com.google.cloud.redis.v1beta1.TlsCertificate.Builder, com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> serverCaCertsBuilder_; + com.google.cloud.redis.v1beta1.TlsCertificate, + com.google.cloud.redis.v1beta1.TlsCertificate.Builder, + com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> + serverCaCertsBuilder_; /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getServerCaCertsList() { if (serverCaCertsBuilder_ == null) { @@ -5940,11 +6596,15 @@ public java.util.List getServerCa } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getServerCaCertsCount() { if (serverCaCertsBuilder_ == null) { @@ -5954,11 +6614,15 @@ public int getServerCaCertsCount() { } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -5968,11 +6632,15 @@ public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate value) { @@ -5989,11 +6657,15 @@ public Builder setServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) { @@ -6007,11 +6679,15 @@ public Builder setServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addServerCaCerts(com.google.cloud.redis.v1beta1.TlsCertificate value) { if (serverCaCertsBuilder_ == null) { @@ -6027,11 +6703,15 @@ public Builder addServerCaCerts(com.google.cloud.redis.v1beta1.TlsCertificate va return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate value) { @@ -6048,11 +6728,15 @@ public Builder addServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addServerCaCerts( com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) { @@ -6066,11 +6750,15 @@ public Builder addServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addServerCaCerts( int index, com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) { @@ -6084,18 +6772,21 @@ public Builder addServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllServerCaCerts( java.lang.Iterable values) { if (serverCaCertsBuilder_ == null) { ensureServerCaCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serverCaCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverCaCerts_); onChanged(); } else { serverCaCertsBuilder_.addAllMessages(values); @@ -6103,11 +6794,15 @@ public Builder addAllServerCaCerts( return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearServerCaCerts() { if (serverCaCertsBuilder_ == null) { @@ -6120,11 +6815,15 @@ public Builder clearServerCaCerts() { return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeServerCaCerts(int index) { if (serverCaCertsBuilder_ == null) { @@ -6137,39 +6836,52 @@ public Builder removeServerCaCerts(int index) { return this; } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder getServerCaCertsBuilder( int index) { return getServerCaCertsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( int index) { if (serverCaCertsBuilder_ == null) { - return serverCaCerts_.get(index); } else { + return serverCaCerts_.get(index); + } else { return serverCaCertsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getServerCaCertsOrBuilderList() { + public java.util.List + getServerCaCertsOrBuilderList() { if (serverCaCertsBuilder_ != null) { return serverCaCertsBuilder_.getMessageOrBuilderList(); } else { @@ -6177,45 +6889,63 @@ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOr } } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBuilder() { - return getServerCaCertsFieldBuilder().addBuilder( - com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); + return getServerCaCertsFieldBuilder() + .addBuilder(com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBuilder( int index) { - return getServerCaCertsFieldBuilder().addBuilder( - index, com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); + return getServerCaCertsFieldBuilder() + .addBuilder(index, com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance()); } /** + * + * *
      * Output only. List of server CA certificates for the instance.
      * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getServerCaCertsBuilderList() { + public java.util.List + getServerCaCertsBuilderList() { return getServerCaCertsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.TlsCertificate, com.google.cloud.redis.v1beta1.TlsCertificate.Builder, com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> + com.google.cloud.redis.v1beta1.TlsCertificate, + com.google.cloud.redis.v1beta1.TlsCertificate.Builder, + com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder> getServerCaCertsFieldBuilder() { if (serverCaCertsBuilder_ == null) { - serverCaCertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.TlsCertificate, com.google.cloud.redis.v1beta1.TlsCertificate.Builder, com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>( + serverCaCertsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1beta1.TlsCertificate, + com.google.cloud.redis.v1beta1.TlsCertificate.Builder, + com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>( serverCaCerts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6227,78 +6957,110 @@ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBui private int transitEncryptionMode_ = 0; /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for transitEncryptionMode. */ - @java.lang.Override public int getTransitEncryptionModeValue() { + @java.lang.Override + public int getTransitEncryptionModeValue() { return transitEncryptionMode_; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for transitEncryptionMode to set. * @return This builder for chaining. */ public Builder setTransitEncryptionModeValue(int value) { - + transitEncryptionMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitEncryptionMode. */ @java.lang.Override - public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode() { + public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode + getTransitEncryptionMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf(transitEncryptionMode_); - return result == null ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result = + com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf( + transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The transitEncryptionMode to set. * @return This builder for chaining. */ - public Builder setTransitEncryptionMode(com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode value) { + public Builder setTransitEncryptionMode( + com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode value) { if (value == null) { throw new NullPointerException(); } - + transitEncryptionMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The TLS mode of the Redis instance.
      * If not provided, TLS is disabled for the instance.
      * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTransitEncryptionMode() { - + transitEncryptionMode_ = 0; onChanged(); return this; @@ -6306,42 +7068,61 @@ public Builder clearTransitEncryptionMode() { private com.google.cloud.redis.v1beta1.MaintenancePolicy maintenancePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenancePolicy, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + com.google.cloud.redis.v1beta1.MaintenancePolicy, + com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, + com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maintenancePolicy field is set. */ public boolean hasMaintenancePolicy() { return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maintenancePolicy. */ public com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + return maintenancePolicy_ == null + ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } else { return maintenancePolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { @@ -6357,12 +7138,16 @@ public Builder setMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePo return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaintenancePolicy( com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder builderForValue) { @@ -6376,18 +7161,24 @@ public Builder setMaintenancePolicy( return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { if (maintenancePolicy_ != null) { maintenancePolicy_ = - com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); } else { maintenancePolicy_ = value; } @@ -6399,12 +7190,16 @@ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1beta1.Maintenance return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { @@ -6418,51 +7213,68 @@ public Builder clearMaintenancePolicy() { return this; } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - + onChanged(); return getMaintenancePolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder + getMaintenancePolicyOrBuilder() { if (maintenancePolicyBuilder_ != null) { return maintenancePolicyBuilder_.getMessageOrBuilder(); } else { - return maintenancePolicy_ == null ? - com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + return maintenancePolicy_ == null + ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } } /** + * + * *
      * Optional. The maintenance policy for the instance. If not provided,
      * maintenance events can be performed at any time.
      * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenancePolicy, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> + com.google.cloud.redis.v1beta1.MaintenancePolicy, + com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, + com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder> getMaintenancePolicyFieldBuilder() { if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenancePolicy, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), - getParentForChildren(), - isClean()); + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.MaintenancePolicy, + com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder, + com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); maintenancePolicy_ = null; } return maintenancePolicyBuilder_; @@ -6470,44 +7282,64 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenanceP private com.google.cloud.redis.v1beta1.MaintenanceSchedule maintenanceSchedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenanceSchedule, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> maintenanceScheduleBuilder_; + com.google.cloud.redis.v1beta1.MaintenanceSchedule, + com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, + com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> + maintenanceScheduleBuilder_; /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the maintenanceSchedule field is set. */ public boolean hasMaintenanceSchedule() { return maintenanceScheduleBuilder_ != null || maintenanceSchedule_ != null; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The maintenanceSchedule. */ public com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { - return maintenanceSchedule_ == null ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; + return maintenanceSchedule_ == null + ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } else { return maintenanceScheduleBuilder_.getMessage(); } } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setMaintenanceSchedule(com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { + public Builder setMaintenanceSchedule( + com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6521,12 +7353,16 @@ public Builder setMaintenanceSchedule(com.google.cloud.redis.v1beta1.Maintenance return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMaintenanceSchedule( com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder builderForValue) { @@ -6540,18 +7376,25 @@ public Builder setMaintenanceSchedule( return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeMaintenanceSchedule(com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { + public Builder mergeMaintenanceSchedule( + com.google.cloud.redis.v1beta1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { if (maintenanceSchedule_ != null) { maintenanceSchedule_ = - com.google.cloud.redis.v1beta1.MaintenanceSchedule.newBuilder(maintenanceSchedule_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1beta1.MaintenanceSchedule.newBuilder(maintenanceSchedule_) + .mergeFrom(value) + .buildPartial(); } else { maintenanceSchedule_ = value; } @@ -6563,12 +7406,16 @@ public Builder mergeMaintenanceSchedule(com.google.cloud.redis.v1beta1.Maintenan return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMaintenanceSchedule() { if (maintenanceScheduleBuilder_ == null) { @@ -6582,58 +7429,78 @@ public Builder clearMaintenanceSchedule() { return this; } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder getMaintenanceScheduleBuilder() { - + public com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder + getMaintenanceScheduleBuilder() { + onChanged(); return getMaintenanceScheduleFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder() { + public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { if (maintenanceScheduleBuilder_ != null) { return maintenanceScheduleBuilder_.getMessageOrBuilder(); } else { - return maintenanceSchedule_ == null ? - com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() : maintenanceSchedule_; + return maintenanceSchedule_ == null + ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } } /** + * + * *
      * Output only. Date and time of upcoming maintenance events which have been
      * scheduled.
      * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenanceSchedule, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> + com.google.cloud.redis.v1beta1.MaintenanceSchedule, + com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, + com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder> getMaintenanceScheduleFieldBuilder() { if (maintenanceScheduleBuilder_ == null) { - maintenanceScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.MaintenanceSchedule, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder>( - getMaintenanceSchedule(), - getParentForChildren(), - isClean()); + maintenanceScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.MaintenanceSchedule, + com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder, + com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder>( + getMaintenanceSchedule(), getParentForChildren(), isClean()); maintenanceSchedule_ = null; } return maintenanceScheduleBuilder_; } - private int replicaCount_ ; + private int replicaCount_; /** + * + * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -6643,6 +7510,7 @@ public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanc
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ @java.lang.Override @@ -6650,6 +7518,8 @@ public int getReplicaCount() { return replicaCount_; } /** + * + * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -6659,16 +7529,19 @@ public int getReplicaCount() {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The replicaCount to set. * @return This builder for chaining. */ public Builder setReplicaCount(int value) { - + replicaCount_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The number of replica nodes. The valid range for the Standard Tier with
      * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -6678,33 +7551,42 @@ public Builder setReplicaCount(int value) {
      * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReplicaCount() { - + replicaCount_ = 0; onChanged(); return this; } private java.util.List nodes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.NodeInfo, com.google.cloud.redis.v1beta1.NodeInfo.Builder, com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> nodesBuilder_; + com.google.cloud.redis.v1beta1.NodeInfo, + com.google.cloud.redis.v1beta1.NodeInfo.Builder, + com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> + nodesBuilder_; /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { @@ -6714,11 +7596,15 @@ public java.util.List getNodesList() { } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getNodesCount() { if (nodesBuilder_ == null) { @@ -6728,11 +7614,15 @@ public int getNodesCount() { } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) { if (nodesBuilder_ == null) { @@ -6742,14 +7632,17 @@ public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) { } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNodes( - int index, com.google.cloud.redis.v1beta1.NodeInfo value) { + public Builder setNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6763,11 +7656,15 @@ public Builder setNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNodes( int index, com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { @@ -6781,11 +7678,15 @@ public Builder setNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo value) { if (nodesBuilder_ == null) { @@ -6801,14 +7702,17 @@ public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo value) { return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNodes( - int index, com.google.cloud.redis.v1beta1.NodeInfo value) { + public Builder addNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6822,14 +7726,17 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNodes( - com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { + public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -6840,11 +7747,15 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNodes( int index, com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) { @@ -6858,18 +7769,21 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -6877,11 +7791,15 @@ public Builder addAllNodes( return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNodes() { if (nodesBuilder_ == null) { @@ -6894,11 +7812,15 @@ public Builder clearNodes() { return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { @@ -6911,39 +7833,50 @@ public Builder removeNodes(int index) { return this; } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1beta1.NodeInfo.Builder getNodesBuilder( - int index) { + public com.google.cloud.redis.v1beta1.NodeInfo.Builder getNodesBuilder(int index) { return getNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); } else { + return nodes_.get(index); + } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List + getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -6951,49 +7884,62 @@ public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder( } } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); + return getNodesFieldBuilder() + .addBuilder(com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); + public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance()); } /** + * + * *
      * Output only. Info per node.
      * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNodesBuilderList() { + public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.NodeInfo, com.google.cloud.redis.v1beta1.NodeInfo.Builder, com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> + com.google.cloud.redis.v1beta1.NodeInfo, + com.google.cloud.redis.v1beta1.NodeInfo.Builder, + com.google.cloud.redis.v1beta1.NodeInfoOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.NodeInfo, com.google.cloud.redis.v1beta1.NodeInfo.Builder, com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>( - nodes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1beta1.NodeInfo, + com.google.cloud.redis.v1beta1.NodeInfo.Builder, + com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>( + nodes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; @@ -7001,6 +7947,8 @@ public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder( private java.lang.Object readEndpoint_ = ""; /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7009,13 +7957,13 @@ public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder(
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpoint. */ public java.lang.String getReadEndpoint() { java.lang.Object ref = readEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readEndpoint_ = s; return s; @@ -7024,6 +7972,8 @@ public java.lang.String getReadEndpoint() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7032,15 +7982,14 @@ public java.lang.String getReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for readEndpoint. */ - public com.google.protobuf.ByteString - getReadEndpointBytes() { + public com.google.protobuf.ByteString getReadEndpointBytes() { java.lang.Object ref = readEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readEndpoint_ = b; return b; } else { @@ -7048,6 +7997,8 @@ public java.lang.String getReadEndpoint() { } } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7056,20 +8007,22 @@ public java.lang.String getReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpoint( - java.lang.String value) { + public Builder setReadEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + readEndpoint_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7078,15 +8031,18 @@ public Builder setReadEndpoint(
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReadEndpoint() { - + readEndpoint_ = getDefaultInstance().getReadEndpoint(); onChanged(); return this; } /** + * + * *
      * Output only. Hostname or IP address of the exposed readonly Redis
      * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -7095,29 +8051,32 @@ public Builder clearReadEndpoint() {
      * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for readEndpoint to set. * @return This builder for chaining. */ - public Builder setReadEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setReadEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + readEndpoint_ = value; onChanged(); return this; } - private int readEndpointPort_ ; + private int readEndpointPort_; /** + * + * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpointPort. */ @java.lang.Override @@ -7125,32 +8084,38 @@ public int getReadEndpointPort() { return readEndpointPort_; } /** + * + * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The readEndpointPort to set. * @return This builder for chaining. */ public Builder setReadEndpointPort(int value) { - + readEndpointPort_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The port number of the exposed readonly redis
      * endpoint. Standard tier only. Write requests should target 'port'.
      * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReadEndpointPort() { - + readEndpointPort_ = 0; onChanged(); return this; @@ -7158,73 +8123,103 @@ public Builder clearReadEndpointPort() { private int readReplicasMode_ = 0; /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for readReplicasMode. */ - @java.lang.Override public int getReadReplicasModeValue() { + @java.lang.Override + public int getReadReplicasModeValue() { return readReplicasMode_; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for readReplicasMode to set. * @return This builder for chaining. */ public Builder setReadReplicasModeValue(int value) { - + readReplicasMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readReplicasMode. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); - return result == null ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result = + com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_); + return result == null + ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The readReplicasMode to set. * @return This builder for chaining. */ - public Builder setReadReplicasMode(com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode value) { + public Builder setReadReplicasMode( + com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode value) { if (value == null) { throw new NullPointerException(); } - + readReplicasMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
      * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearReadReplicasMode() { - + readReplicasMode_ = 0; onChanged(); return this; @@ -7232,39 +8227,58 @@ public Builder clearReadReplicasMode() { private com.google.cloud.redis.v1beta1.PersistenceConfig persistenceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.PersistenceConfig, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> persistenceConfigBuilder_; + com.google.cloud.redis.v1beta1.PersistenceConfig, + com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, + com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> + persistenceConfigBuilder_; /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the persistenceConfig field is set. */ public boolean hasPersistenceConfig() { return persistenceConfigBuilder_ != null || persistenceConfig_ != null; } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The persistenceConfig. */ public com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig() { if (persistenceConfigBuilder_ == null) { - return persistenceConfig_ == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() : persistenceConfig_; + return persistenceConfig_ == null + ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() + : persistenceConfig_; } else { return persistenceConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceConfig value) { if (persistenceConfigBuilder_ == null) { @@ -7280,11 +8294,15 @@ public Builder setPersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceCo return this; } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPersistenceConfig( com.google.cloud.redis.v1beta1.PersistenceConfig.Builder builderForValue) { @@ -7298,17 +8316,23 @@ public Builder setPersistenceConfig( return this; } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceConfig value) { if (persistenceConfigBuilder_ == null) { if (persistenceConfig_ != null) { persistenceConfig_ = - com.google.cloud.redis.v1beta1.PersistenceConfig.newBuilder(persistenceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1beta1.PersistenceConfig.newBuilder(persistenceConfig_) + .mergeFrom(value) + .buildPartial(); } else { persistenceConfig_ = value; } @@ -7320,11 +8344,15 @@ public Builder mergePersistenceConfig(com.google.cloud.redis.v1beta1.Persistence return this; } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPersistenceConfig() { if (persistenceConfigBuilder_ == null) { @@ -7338,55 +8366,72 @@ public Builder clearPersistenceConfig() { return this; } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.redis.v1beta1.PersistenceConfig.Builder getPersistenceConfigBuilder() { - + onChanged(); return getPersistenceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder() { + public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { if (persistenceConfigBuilder_ != null) { return persistenceConfigBuilder_.getMessageOrBuilder(); } else { - return persistenceConfig_ == null ? - com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() : persistenceConfig_; + return persistenceConfig_ == null + ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance() + : persistenceConfig_; } } /** + * + * *
      * Optional. Persistence configuration parameters
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.PersistenceConfig, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> + com.google.cloud.redis.v1beta1.PersistenceConfig, + com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, + com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder> getPersistenceConfigFieldBuilder() { if (persistenceConfigBuilder_ == null) { - persistenceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.PersistenceConfig, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder>( - getPersistenceConfig(), - getParentForChildren(), - isClean()); + persistenceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.PersistenceConfig, + com.google.cloud.redis.v1beta1.PersistenceConfig.Builder, + com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder>( + getPersistenceConfig(), getParentForChildren(), isClean()); persistenceConfig_ = null; } return persistenceConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7396,12 +8441,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance) private static final com.google.cloud.redis.v1beta1.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.Instance(); } @@ -7410,16 +8455,16 @@ public static com.google.cloud.redis.v1beta1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7434,6 +8479,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java index db0a8375..8187c1bd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Instance AUTH string details.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InstanceAuthString} */ -public final class InstanceAuthString extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InstanceAuthString extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.InstanceAuthString) InstanceAuthStringOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstanceAuthString.newBuilder() to construct. private InstanceAuthString(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstanceAuthString() { authString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstanceAuthString(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InstanceAuthString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private InstanceAuthString( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - authString_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + authString_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private InstanceAuthString( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InstanceAuthString.class, com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1beta1.InstanceAuthString.class, + com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); } public static final int AUTH_STRING_FIELD_NUMBER = 1; private volatile java.lang.Object authString_; /** + * + * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; + * * @return The authString. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getAuthString() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; } } /** + * + * *
    * AUTH string set on the instance.
    * 
* * string auth_string = 1; + * * @return The bytes for authString. */ @java.lang.Override - public com.google.protobuf.ByteString - getAuthStringBytes() { + public com.google.protobuf.ByteString getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authString_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getAuthString() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authString_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.redis.v1beta1.InstanceAuthString)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.InstanceAuthString other = (com.google.cloud.redis.v1beta1.InstanceAuthString) obj; + com.google.cloud.redis.v1beta1.InstanceAuthString other = + (com.google.cloud.redis.v1beta1.InstanceAuthString) obj; - if (!getAuthString() - .equals(other.getAuthString())) return false; + if (!getAuthString().equals(other.getAuthString())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.InstanceAuthString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.InstanceAuthString prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Instance AUTH string details.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.InstanceAuthString} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.InstanceAuthString) com.google.cloud.redis.v1beta1.InstanceAuthStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.InstanceAuthString.class, com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); + com.google.cloud.redis.v1beta1.InstanceAuthString.class, + com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.InstanceAuthString.newBuilder() @@ -322,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.redis.v1beta1.InstanceAuthString build() { @java.lang.Override public com.google.cloud.redis.v1beta1.InstanceAuthString buildPartial() { - com.google.cloud.redis.v1beta1.InstanceAuthString result = new com.google.cloud.redis.v1beta1.InstanceAuthString(this); + com.google.cloud.redis.v1beta1.InstanceAuthString result = + new com.google.cloud.redis.v1beta1.InstanceAuthString(this); result.authString_ = authString_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.redis.v1beta1.InstanceAuthString buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.InstanceAuthString) { - return mergeFrom((com.google.cloud.redis.v1beta1.InstanceAuthString)other); + return mergeFrom((com.google.cloud.redis.v1beta1.InstanceAuthString) other); } else { super.mergeFrom(other); return this; @@ -411,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.InstanceAuthString other) { - if (other == com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance()) + return this; if (!other.getAuthString().isEmpty()) { authString_ = other.authString_; onChanged(); @@ -435,7 +469,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.InstanceAuthString) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.InstanceAuthString) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +482,20 @@ public Builder mergeFrom( private java.lang.Object authString_ = ""; /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @return The authString. */ public java.lang.String getAuthString() { java.lang.Object ref = authString_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authString_ = s; return s; @@ -467,20 +504,21 @@ public java.lang.String getAuthString() { } } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @return The bytes for authString. */ - public com.google.protobuf.ByteString - getAuthStringBytes() { + public com.google.protobuf.ByteString getAuthStringBytes() { java.lang.Object ref = authString_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authString_ = b; return b; } else { @@ -488,61 +526,68 @@ public java.lang.String getAuthString() { } } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @param value The authString to set. * @return This builder for chaining. */ - public Builder setAuthString( - java.lang.String value) { + public Builder setAuthString(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authString_ = value; onChanged(); return this; } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @return This builder for chaining. */ public Builder clearAuthString() { - + authString_ = getDefaultInstance().getAuthString(); onChanged(); return this; } /** + * + * *
      * AUTH string set on the instance.
      * 
* * string auth_string = 1; + * * @param value The bytes for authString to set. * @return This builder for chaining. */ - public Builder setAuthStringBytes( - com.google.protobuf.ByteString value) { + public Builder setAuthStringBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authString_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.InstanceAuthString) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.InstanceAuthString) private static final com.google.cloud.redis.v1beta1.InstanceAuthString DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.InstanceAuthString(); } @@ -566,16 +611,16 @@ public static com.google.cloud.redis.v1beta1.InstanceAuthString getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceAuthString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceAuthString(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceAuthString parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceAuthString(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.InstanceAuthString getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java new file mode 100644 index 00000000..0e041967 --- /dev/null +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java @@ -0,0 +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/redis/v1beta1/cloud_redis.proto + +package com.google.cloud.redis.v1beta1; + +public interface InstanceAuthStringOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.InstanceAuthString) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * + * @return The authString. + */ + java.lang.String getAuthString(); + /** + * + * + *
+   * AUTH string set on the instance.
+   * 
+ * + * string auth_string = 1; + * + * @return The bytes for authString. + */ + com.google.protobuf.ByteString getAuthStringBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java index 0ad633be..801e56f6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -20,10 +38,13 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -36,32 +57,39 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * An arbitrary and optional user-provided name for the instance.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -70,30 +98,31 @@ public interface InstanceOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - 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(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
@@ -102,22 +131,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user provided metadata
    * 
* * map<string, string> labels = 3; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -127,10 +158,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The locationId. */ java.lang.String getLocationId(); /** + * + * *
    * Optional. The zone where the instance will be provisioned. If not provided,
    * the service will choose a zone from the specified region for the instance.
@@ -140,12 +174,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for locationId. */ - com.google.protobuf.ByteString - getLocationIdBytes(); + com.google.protobuf.ByteString getLocationIdBytes(); /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -155,10 +191,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alternativeLocationId. */ java.lang.String getAlternativeLocationId(); /** + * + * *
    * Optional. If specified, at least one node will be provisioned in this zone
    * in addition to the zone specified in location_id. Only applicable to
@@ -168,12 +207,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alternativeLocationId. */ - com.google.protobuf.ByteString - getAlternativeLocationIdBytes(); + com.google.protobuf.ByteString getAlternativeLocationIdBytes(); /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -185,10 +226,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** + * + * *
    * Optional. The version of Redis software.
    * If not provided, latest supported version will be used. Currently, the
@@ -200,12 +244,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString - getRedisVersionBytes(); + com.google.protobuf.ByteString getRedisVersionBytes(); /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -218,10 +264,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** + * + * *
    * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
    * that are reserved for this instance. Range must
@@ -234,12 +283,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString - getReservedIpRangeBytes(); + com.google.protobuf.ByteString getReservedIpRangeBytes(); /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -249,10 +300,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The secondaryIpRange. */ java.lang.String getSecondaryIpRange(); /** + * + * *
    * Optional. Additional IP range for node placement. Required when enabling read
    * replicas on an existing instance. For DIRECT_PEERING mode value must be a
@@ -262,44 +316,54 @@ java.lang.String getLabelsOrThrow(
    * 
* * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for secondaryIpRange. */ - com.google.protobuf.ByteString - getSecondaryIpRangeBytes(); + com.google.protobuf.ByteString getSecondaryIpRangeBytes(); /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Output only. Hostname or IP address of the exposed Redis endpoint used by
    *  clients to connect to the service.
    * 
* * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); /** + * + * *
    * Output only. The port number of the exposed Redis endpoint.
    * 
* * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ int getPort(); /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -307,10 +371,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The currentLocationId. */ java.lang.String getCurrentLocationId(); /** + * + * *
    * Output only. The current zone where the Redis primary node is located. In
    * basic tier, this will always be the same as [location_id]. In
@@ -318,80 +385,108 @@ java.lang.String getLabelsOrThrow(
    * 
* * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for currentLocationId. */ - com.google.protobuf.ByteString - getCurrentLocationIdBytes(); + com.google.protobuf.ByteString getCurrentLocationIdBytes(); /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The current state of this instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of this instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.redis.v1beta1.Instance.State getState(); /** + * + * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Additional information about the current status of this
    * instance, if available.
    * 
* * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -409,10 +504,13 @@ java.lang.String getLabelsOrThrow(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getRedisConfigsCount(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -430,17 +528,16 @@ java.lang.String getLabelsOrThrow(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsRedisConfigs( - java.lang.String key); - /** - * Use {@link #getRedisConfigsMap()} instead. + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsRedisConfigs(java.lang.String key); + /** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getRedisConfigs(); + java.util.Map getRedisConfigs(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -458,11 +555,13 @@ boolean containsRedisConfigs(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getRedisConfigsMap(); + java.util.Map getRedisConfigsMap(); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -480,15 +579,18 @@ boolean containsRedisConfigs(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getRedisConfigsOrDefault( + java.lang.String getRedisConfigsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Redis configuration parameters, according to
    * http://redis.io/topics/config. Currently, the only supported parameters
@@ -506,42 +608,56 @@ java.lang.String getRedisConfigsOrDefault(
    *  *   stream-node-max-entries
    * 
* - * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getRedisConfigsOrThrow( - java.lang.String key); + java.lang.String getRedisConfigsOrThrow(java.lang.String key); /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** + * + * *
    * Required. The service tier of the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tier. */ com.google.cloud.redis.v1beta1.Instance.Tier getTier(); /** + * + * *
    * Required. Redis memory size in GiB.
    * 
* * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeGb. */ int getMemorySizeGb(); /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -550,10 +666,13 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** + * + * *
    * Optional. The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -562,12 +681,14 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString - getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString getAuthorizedNetworkBytes(); /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -577,10 +698,13 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The persistenceIamIdentity. */ java.lang.String getPersistenceIamIdentity(); /** + * + * *
    * Output only. Cloud IAM identity used by import / export operations to
    * transfer data to/from Cloud Storage. Format is
@@ -590,33 +714,45 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for persistenceIamIdentity. */ - com.google.protobuf.ByteString - getPersistenceIamIdentityBytes(); + com.google.protobuf.ByteString getPersistenceIamIdentityBytes(); /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for connectMode. */ int getConnectModeValue(); /** + * + * *
    * Optional. The network connect mode of the Redis instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectMode. */ com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode(); /** + * + * *
    * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
    * "true" AUTH is enabled on the instance. Default value is "false" meaning
@@ -624,136 +760,195 @@ java.lang.String getRedisConfigsOrThrow(
    * 
* * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The authEnabled. */ boolean getAuthEnabled(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getServerCaCertsList(); + java.util.List getServerCaCertsList(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getServerCaCertsCount(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getServerCaCertsOrBuilderList(); /** + * + * *
    * Output only. List of server CA certificates for the instance.
    * 
* - * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder( - int index); + com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index); /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for transitEncryptionMode. */ int getTransitEncryptionModeValue(); /** + * + * *
    * Optional. The TLS mode of the Redis instance.
    * If not provided, TLS is disabled for the instance.
    * 
* - * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitEncryptionMode. */ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode(); /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maintenancePolicy field is set. */ boolean hasMaintenancePolicy(); /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maintenancePolicy. */ com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy(); /** + * + * *
    * Optional. The maintenance policy for the instance. If not provided,
    * maintenance events can be performed at any time.
    * 
* - * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the maintenanceSchedule field is set. */ boolean hasMaintenanceSchedule(); /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The maintenanceSchedule. */ com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule(); /** + * + * *
    * Output only. Date and time of upcoming maintenance events which have been
    * scheduled.
    * 
* - * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder(); /** + * + * *
    * Optional. The number of replica nodes. The valid range for the Standard Tier with
    * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
@@ -763,55 +958,76 @@ com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder
    * 
* * int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ int getReplicaCount(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getNodesList(); + java.util.List getNodesList(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getNodesCount(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getNodesOrBuilderList(); /** + * + * *
    * Output only. Info per node.
    * 
* - * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder( - int index); + com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index); /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -820,10 +1036,13 @@ com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpoint. */ java.lang.String getReadEndpoint(); /** + * + * *
    * Output only. Hostname or IP address of the exposed readonly Redis
    * endpoint. Standard tier only. Targets all healthy replica nodes in
@@ -832,65 +1051,92 @@ com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(
    * 
* * string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for readEndpoint. */ - com.google.protobuf.ByteString - getReadEndpointBytes(); + com.google.protobuf.ByteString getReadEndpointBytes(); /** + * + * *
    * Output only. The port number of the exposed readonly redis
    * endpoint. Standard tier only. Write requests should target 'port'.
    * 
* * int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The readEndpointPort. */ int getReadEndpointPort(); /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for readReplicasMode. */ int getReadReplicasModeValue(); /** + * + * *
    * Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
    * 
* - * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readReplicasMode. */ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode(); /** + * + * *
    * Optional. Persistence configuration parameters
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the persistenceConfig field is set. */ boolean hasPersistenceConfig(); /** + * + * *
    * Optional. Persistence configuration parameters
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The persistenceConfig. */ com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig(); /** + * + * *
    * Optional. Persistence configuration parameters
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java index 051a50f6..7afcb682 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesRequest} */ -public final class ListInstancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ListInstancesRequest) ListInstancesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListInstancesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesRequest.class, com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesRequest.class, + com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ 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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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 { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -168,6 +198,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -178,12 +209,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -192,30 +226,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; } } /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * 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 { @@ -224,6 +258,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -273,19 +306,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.redis.v1beta1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ListInstancesRequest other = (com.google.cloud.redis.v1beta1.ListInstancesRequest) obj; + com.google.cloud.redis.v1beta1.ListInstancesRequest other = + (com.google.cloud.redis.v1beta1.ListInstancesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -309,117 +340,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ListInstancesRequest) com.google.cloud.redis.v1beta1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesRequest.class, com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesRequest.class, + com.google.cloud.redis.v1beta1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ListInstancesRequest.newBuilder() @@ -427,16 +467,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(); @@ -450,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -471,7 +510,8 @@ public com.google.cloud.redis.v1beta1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ListInstancesRequest buildPartial() { - com.google.cloud.redis.v1beta1.ListInstancesRequest result = new com.google.cloud.redis.v1beta1.ListInstancesRequest(this); + com.google.cloud.redis.v1beta1.ListInstancesRequest result = + new com.google.cloud.redis.v1beta1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -483,38 +523,39 @@ public com.google.cloud.redis.v1beta1.ListInstancesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -522,7 +563,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ListInstancesRequest other) { - if (other == com.google.cloud.redis.v1beta1.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -553,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,20 +608,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.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; @@ -587,22 +634,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -610,67 +660,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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 resource name of the instance location using the form:
      *     `projects/{project_id}/locations/{location_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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_; /** + * + * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -681,6 +746,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -688,6 +754,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -698,16 +766,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; } /** + * + * *
      * The maximum number of items to return.
      * If not specified, a default value of 1000 will be used by the service.
@@ -718,10 +789,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -729,19 +801,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; @@ -750,21 +824,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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 { @@ -772,64 +847,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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; } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The `next_page_token` value returned from a previous
      * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
      * 
* * 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); } @@ -839,12 +921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesRequest) private static final com.google.cloud.redis.v1beta1.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ListInstancesRequest(); } @@ -853,16 +935,16 @@ public static com.google.cloud.redis.v1beta1.ListInstancesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -877,6 +959,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java index ebead2cb..f9704d18 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.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 resource name of the instance location using the form:
    *     `projects/{project_id}/locations/{location_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string parent = 1 [(.google.api.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(); /** + * + * *
    * The maximum number of items to return.
    * If not specified, a default value of 1000 will be used by the service.
@@ -42,29 +69,35 @@ public interface ListInstancesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The `next_page_token` value returned from a previous
    * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
    * 
* * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java index 1afdb483..3be396d4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesResponse} */ -public final class ListInstancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ListInstancesResponse) ListInstancesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instances_.add( + input.readMessage( + com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry)); + break; } - instances_.add( - input.readMessage(com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -107,22 +127,27 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesResponse.class, com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesResponse.class, + com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -143,6 +168,8 @@ public java.util.List getInstancesList(
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -159,11 +186,13 @@ public java.util.List getInstancesList(
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -184,6 +213,8 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -204,6 +235,8 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -220,20 +253,22 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
-      int index) {
+  public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -242,30 +277,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; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -276,34 +311,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. */ @@ -311,20 +354,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; @@ -336,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 { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -357,8 +402,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -379,19 +423,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.redis.v1beta1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.ListInstancesResponse other = (com.google.cloud.redis.v1beta1.ListInstancesResponse) obj; + com.google.cloud.redis.v1beta1.ListInstancesResponse other = + (com.google.cloud.redis.v1beta1.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) 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,117 +461,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ListInstancesResponse) com.google.cloud.redis.v1beta1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.ListInstancesResponse.class, com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.redis.v1beta1.ListInstancesResponse.class, + com.google.cloud.redis.v1beta1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.ListInstancesResponse.newBuilder() @@ -537,17 +588,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) { getInstancesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -586,7 +637,8 @@ public com.google.cloud.redis.v1beta1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.redis.v1beta1.ListInstancesResponse buildPartial() { - com.google.cloud.redis.v1beta1.ListInstancesResponse result = new com.google.cloud.redis.v1beta1.ListInstancesResponse(this); + com.google.cloud.redis.v1beta1.ListInstancesResponse result = + new com.google.cloud.redis.v1beta1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -611,38 +663,39 @@ public com.google.cloud.redis.v1beta1.ListInstancesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.redis.v1beta1.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -650,7 +703,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.ListInstancesResponse other) { - if (other == com.google.cloud.redis.v1beta1.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -669,9 +723,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.ListInstancesResponse ot instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstancesFieldBuilder() : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -710,7 +765,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -719,21 +775,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.redis.v1beta1.Instance, + com.google.cloud.redis.v1beta1.Instance.Builder, + com.google.cloud.redis.v1beta1.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -757,6 +820,8 @@ public java.util.List getInstancesList(
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -780,6 +845,8 @@ public int getInstancesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -803,6 +870,8 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -818,8 +887,7 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public Builder setInstances(
-        int index, com.google.cloud.redis.v1beta1.Instance value) {
+    public Builder setInstances(int index, com.google.cloud.redis.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -833,6 +901,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -860,6 +930,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -889,6 +961,8 @@ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -904,8 +978,7 @@ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance value) {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public Builder addInstances(
-        int index, com.google.cloud.redis.v1beta1.Instance value) {
+    public Builder addInstances(int index, com.google.cloud.redis.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -919,6 +992,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -934,8 +1009,7 @@ public Builder addInstances(
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public Builder addInstances(
-        com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) {
+    public Builder addInstances(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -946,6 +1020,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -973,6 +1049,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -992,8 +1070,7 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -1001,6 +1078,8 @@ public Builder addAllInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1027,6 +1106,8 @@ public Builder clearInstances() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1053,6 +1134,8 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1068,11 +1151,12 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1beta1.Instance.Builder getInstancesBuilder(
-        int index) {
+    public com.google.cloud.redis.v1beta1.Instance.Builder getInstancesBuilder(int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1088,14 +1172,16 @@ public com.google.cloud.redis.v1beta1.Instance.Builder getInstancesBuilder(
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
-        int index) {
+    public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);  } else {
+        return instances_.get(index);
+      } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1111,8 +1197,8 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesOrBuilderList() {
+    public java.util.List
+        getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1120,6 +1206,8 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1136,10 +1224,12 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
     public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder().addBuilder(
-          com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder()
+          .addBuilder(com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1155,12 +1245,13 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(
-        int index) {
-      return getInstancesFieldBuilder().addBuilder(
-          index, com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
+    public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(int index) {
+      return getInstancesFieldBuilder()
+          .addBuilder(index, com.google.cloud.redis.v1beta1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Redis instances in the project in the specified location,
      * or across all locations.
@@ -1176,20 +1267,23 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(
      *
      * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesBuilderList() {
+    public java.util.List
+        getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> 
+            com.google.cloud.redis.v1beta1.Instance,
+            com.google.cloud.redis.v1beta1.Instance.Builder,
+            com.google.cloud.redis.v1beta1.InstanceOrBuilder>
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder>(
-                instances_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        instancesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.redis.v1beta1.Instance,
+                com.google.cloud.redis.v1beta1.Instance.Builder,
+                com.google.cloud.redis.v1beta1.InstanceOrBuilder>(
+                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1197,19 +1291,21 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1218,21 +1314,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1240,98 +1337,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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. */ @@ -1339,80 +1453,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() { @@ -1422,28 +1546,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); } @@ -1453,12 +1579,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesResponse) private static final com.google.cloud.redis.v1beta1.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ListInstancesResponse(); } @@ -1467,16 +1593,16 @@ public static com.google.cloud.redis.v1beta1.ListInstancesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1491,6 +1617,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java similarity index 83% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java index 4c12a400..d2e27cc6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -23,9 +41,10 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
-  java.util.List 
-      getInstancesList();
+  java.util.List getInstancesList();
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -43,6 +62,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   com.google.cloud.redis.v1beta1.Instance getInstances(int index);
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -60,6 +81,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   int getInstancesCount();
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -75,9 +98,11 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
-  java.util.List 
+  java.util.List
       getInstancesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of Redis instances in the project in the specified location,
    * or across all locations.
@@ -93,69 +118,83 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.redis.v1beta1.Instance instances = 1;
    */
-  com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
-      int index);
+  com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * 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/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java index 9c5ff204..82d432f4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadata.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * This location metadata represents additional configuration options for a
  * given location where a Redis instance may be created. All fields are output
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.LocationMetadata}
  */
-public final class LocationMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.LocationMetadata)
     LocationMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LocationMetadata.newBuilder() to construct.
   private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LocationMetadata() {
-  }
+
+  private LocationMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LocationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LocationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,26 +72,32 @@ private LocationMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              availableZones_ = com.google.protobuf.MapField.newMapField(
-                  AvailableZonesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                availableZones_ =
+                    com.google.protobuf.MapField.newMapField(
+                        AvailableZonesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry<
+                      java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
+                  availableZones__ =
+                      input.readMessage(
+                          AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              availableZones_
+                  .getMutableMap()
+                  .put(availableZones__.getKey(), availableZones__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            availableZones__ = input.readMessage(
-                AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            availableZones_.getMutableMap().put(
-                availableZones__.getKey(), availableZones__.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) {
@@ -83,54 +105,62 @@ private LocationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_LocationMetadata_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 1:
         return internalGetAvailableZones();
       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.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.LocationMetadata.class, com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
+            com.google.cloud.redis.v1beta1.LocationMetadata.class,
+            com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
   }
 
   public static final int AVAILABLE_ZONES_FIELD_NUMBER = 1;
+
   private static final class AvailableZonesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata> defaultEntry =
+            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.redis.v1beta1.ZoneMetadata.getDefaultInstance());
+                .newDefaultInstance(
+                    com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+                        .internal_static_google_cloud_redis_v1beta1_LocationMetadata_AvailableZonesEntry_descriptor,
+                    com.google.protobuf.WireFormat.FieldType.STRING,
+                    "",
+                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                    com.google.cloud.redis.v1beta1.ZoneMetadata.getDefaultInstance());
   }
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
+      availableZones_;
+
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata> availableZones_;
-  private com.google.protobuf.MapField
-  internalGetAvailableZones() {
+          java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
+      internalGetAvailableZones() {
     if (availableZones_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           AvailableZonesDefaultEntryHolder.defaultEntry);
@@ -142,6 +172,8 @@ public int getAvailableZonesCount() {
     return internalGetAvailableZones().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -149,24 +181,27 @@ public int getAvailableZonesCount() {
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsAvailableZones( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAvailableZones(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAvailableZones().getMap().containsKey(key); } - /** - * Use {@link #getAvailableZonesMap()} instead. - */ + /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAvailableZones() { + public java.util.Map + getAvailableZones() { return getAvailableZonesMap(); } /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -174,14 +209,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getAvailableZonesMap() {
+  public java.util.Map
+      getAvailableZonesMap() {
     return internalGetAvailableZones().getMap();
   }
   /**
+   *
+   *
    * 
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -189,19 +228,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
   public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
-      java.lang.String key,
-      com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetAvailableZones().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -209,13 +252,16 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -225,6 +271,7 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,14 +283,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAvailableZones(), - AvailableZonesDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAvailableZones(), AvailableZonesDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @@ -253,15 +295,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetAvailableZones().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetAvailableZones().getMap().entrySet()) { com.google.protobuf.MapEntry - availableZones__ = AvailableZonesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, availableZones__); + availableZones__ = + AvailableZonesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, availableZones__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,15 +314,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.redis.v1beta1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.LocationMetadata other = (com.google.cloud.redis.v1beta1.LocationMetadata) obj; + com.google.cloud.redis.v1beta1.LocationMetadata other = + (com.google.cloud.redis.v1beta1.LocationMetadata) obj; - if (!internalGetAvailableZones().equals( - other.internalGetAvailableZones())) return false; + if (!internalGetAvailableZones().equals(other.internalGetAvailableZones())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,97 +343,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.LocationMetadata 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.redis.v1beta1.LocationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * This location metadata represents additional configuration options for a
    * given location where a Redis instance may be created. All fields are output
@@ -400,43 +450,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.LocationMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.LocationMetadata)
       com.google.cloud.redis.v1beta1.LocationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetAvailableZones();
         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 1:
           return internalGetMutableAvailableZones();
         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.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_LocationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.LocationMetadata.class, com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
+              com.google.cloud.redis.v1beta1.LocationMetadata.class,
+              com.google.cloud.redis.v1beta1.LocationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.LocationMetadata.newBuilder()
@@ -444,16 +494,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();
@@ -462,9 +511,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_LocationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -483,7 +532,8 @@ public com.google.cloud.redis.v1beta1.LocationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.LocationMetadata buildPartial() {
-      com.google.cloud.redis.v1beta1.LocationMetadata result = new com.google.cloud.redis.v1beta1.LocationMetadata(this);
+      com.google.cloud.redis.v1beta1.LocationMetadata result =
+          new com.google.cloud.redis.v1beta1.LocationMetadata(this);
       int from_bitField0_ = bitField0_;
       result.availableZones_ = internalGetAvailableZones();
       result.availableZones_.makeImmutable();
@@ -495,38 +545,39 @@ public com.google.cloud.redis.v1beta1.LocationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.LocationMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.LocationMetadata)other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.LocationMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,9 +585,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1beta1.LocationMetadata other) {
-      if (other == com.google.cloud.redis.v1beta1.LocationMetadata.getDefaultInstance()) return this;
-      internalGetMutableAvailableZones().mergeFrom(
-          other.internalGetAvailableZones());
+      if (other == com.google.cloud.redis.v1beta1.LocationMetadata.getDefaultInstance())
+        return this;
+      internalGetMutableAvailableZones().mergeFrom(other.internalGetAvailableZones());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -565,24 +616,31 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata> availableZones_;
-    private com.google.protobuf.MapField
-    internalGetAvailableZones() {
+            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
+        availableZones_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
+        internalGetAvailableZones() {
       if (availableZones_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       return availableZones_;
     }
-    private com.google.protobuf.MapField
-    internalGetMutableAvailableZones() {
-      onChanged();;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.redis.v1beta1.ZoneMetadata>
+        internalGetMutableAvailableZones() {
+      onChanged();
+      ;
       if (availableZones_ == null) {
-        availableZones_ = com.google.protobuf.MapField.newMapField(
-            AvailableZonesDefaultEntryHolder.defaultEntry);
+        availableZones_ =
+            com.google.protobuf.MapField.newMapField(AvailableZonesDefaultEntryHolder.defaultEntry);
       }
       if (!availableZones_.isMutable()) {
         availableZones_ = availableZones_.copy();
@@ -594,6 +652,8 @@ public int getAvailableZonesCount() {
       return internalGetAvailableZones().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -601,24 +661,27 @@ public int getAvailableZonesCount() {
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsAvailableZones( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAvailableZones(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAvailableZones().getMap().containsKey(key); } - /** - * Use {@link #getAvailableZonesMap()} instead. - */ + /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAvailableZones() { + public java.util.Map + getAvailableZones() { return getAvailableZonesMap(); } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -626,14 +689,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getAvailableZonesMap() {
+    public java.util.Map
+        getAvailableZonesMap() {
       return internalGetAvailableZones().getMap();
     }
     /**
+     *
+     *
      * 
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -641,19 +708,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
     public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
-        java.lang.String key,
-        com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetAvailableZones().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -661,13 +732,16 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAvailableZones().getMap(); if (!map.containsKey(key)) { @@ -677,11 +751,12 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( } public Builder clearAvailableZones() { - internalGetMutableAvailableZones().getMutableMap() - .clear(); + internalGetMutableAvailableZones().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -689,25 +764,26 @@ public Builder clearAvailableZones() {
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeAvailableZones( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAvailableZones().getMutableMap() - .remove(key); + public Builder removeAvailableZones(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAvailableZones().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableAvailableZones() { + getMutableAvailableZones() { return internalGetMutableAvailableZones().getMutableMap(); } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -715,21 +791,25 @@ public Builder removeAvailableZones(
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAvailableZones( - java.lang.String key, - com.google.cloud.redis.v1beta1.ZoneMetadata value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.redis.v1beta1.ZoneMetadata value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAvailableZones().getMutableMap() - .put(key, value); + internalGetMutableAvailableZones().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. The set of available zones in the location. The map is keyed
      * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -737,18 +817,18 @@ public Builder putAvailableZones(
      * creating a Redis instance.
      * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllAvailableZones( java.util.Map values) { - internalGetMutableAvailableZones().getMutableMap() - .putAll(values); + internalGetMutableAvailableZones().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); } @@ -758,12 +838,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.LocationMetadata) private static final com.google.cloud.redis.v1beta1.LocationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.LocationMetadata(); } @@ -772,16 +852,16 @@ public static com.google.cloud.redis.v1beta1.LocationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -796,6 +876,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java similarity index 53% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java index de17f9f3..0588a263 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationMetadataOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface LocationMetadataOrBuilder extends +public interface LocationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -15,10 +33,14 @@ public interface LocationMetadataOrBuilder extends
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getAvailableZonesCount(); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -26,17 +48,17 @@ public interface LocationMetadataOrBuilder extends
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsAvailableZones( - java.lang.String key); - /** - * Use {@link #getAvailableZonesMap()} instead. + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsAvailableZones(java.lang.String key); + /** Use {@link #getAvailableZonesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAvailableZones(); + java.util.Map getAvailableZones(); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -44,11 +66,15 @@ boolean containsAvailableZones(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map - getAvailableZonesMap(); + getAvailableZonesMap(); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -56,15 +82,19 @@ boolean containsAvailableZones(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault( + com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue); + com.google.cloud.redis.v1beta1.ZoneMetadata defaultValue); /** + * + * *
    * Output only. The set of available zones in the location. The map is keyed
    * by the lowercase ID of each zone, as defined by GCE. These keys can be
@@ -72,9 +102,9 @@ com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrDefault(
    * creating a Redis instance.
    * 
* - * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow( - java.lang.String key); + com.google.cloud.redis.v1beta1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java index 42ad643a..54e085b8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Maintenance policy for an instance.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.MaintenancePolicy} */ -public final class MaintenancePolicy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.MaintenancePolicy) MaintenancePolicyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MaintenancePolicy.newBuilder() to construct. private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MaintenancePolicy() { description_ = ""; weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private MaintenancePolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MaintenancePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MaintenancePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +72,64 @@ private MaintenancePolicy( 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(); - } + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (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 18: + { + 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: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + description_ = s; + break; } - weeklyMaintenanceWindow_.add( - input.readMessage(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + weeklyMaintenanceWindow_ = + new java.util.ArrayList< + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow>(); + mutable_bitField0_ |= 0x00000001; + } + weeklyMaintenanceWindow_.add( + input.readMessage( + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,8 +137,7 @@ private MaintenancePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); @@ -120,27 +146,34 @@ private MaintenancePolicy( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.MaintenancePolicy.class, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1beta1.MaintenancePolicy.class, + com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the policy 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 @@ -148,11 +181,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the policy 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 @@ -160,11 +197,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the policy 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() { @@ -174,11 +214,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -186,11 +230,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -198,11 +246,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -212,12 +263,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -226,30 +280,30 @@ 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; } } /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -258,76 +312,100 @@ public java.lang.String getDescription() { } public static final int WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER = 4; - private java.util.List weeklyMaintenanceWindow_; + private java.util.List + weeklyMaintenanceWindow_; /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getWeeklyMaintenanceWindowList() { + public java.util.List + getWeeklyMaintenanceWindowList() { return weeklyMaintenanceWindow_; } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getWeeklyMaintenanceWindowOrBuilderList() { return weeklyMaintenanceWindow_; } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getWeeklyMaintenanceWindowCount() { return weeklyMaintenanceWindow_.size(); } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow( + int index) { return weeklyMaintenanceWindow_.get(index); } /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( - int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { return weeklyMaintenanceWindow_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +417,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -363,19 +440,18 @@ 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 (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, weeklyMaintenanceWindow_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, weeklyMaintenanceWindow_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,27 +461,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.redis.v1beta1.MaintenancePolicy)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.MaintenancePolicy other = (com.google.cloud.redis.v1beta1.MaintenancePolicy) obj; + com.google.cloud.redis.v1beta1.MaintenancePolicy other = + (com.google.cloud.redis.v1beta1.MaintenancePolicy) obj; 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 (!getDescription() - .equals(other.getDescription())) return false; - if (!getWeeklyMaintenanceWindowList() - .equals(other.getWeeklyMaintenanceWindowList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,118 +510,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.MaintenancePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Maintenance policy for an instance.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.MaintenancePolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.MaintenancePolicy) com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.MaintenancePolicy.class, com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); + com.google.cloud.redis.v1beta1.MaintenancePolicy.class, + com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder() @@ -555,17 +638,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) { getWeeklyMaintenanceWindowFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +676,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor; } @java.lang.Override @@ -614,7 +697,8 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicy build() { @java.lang.Override public com.google.cloud.redis.v1beta1.MaintenancePolicy buildPartial() { - com.google.cloud.redis.v1beta1.MaintenancePolicy result = new com.google.cloud.redis.v1beta1.MaintenancePolicy(this); + com.google.cloud.redis.v1beta1.MaintenancePolicy result = + new com.google.cloud.redis.v1beta1.MaintenancePolicy(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -629,7 +713,8 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicy buildPartial() { result.description_ = description_; if (weeklyMaintenanceWindowBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = + java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); bitField0_ = (bitField0_ & ~0x00000001); } result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindow_; @@ -644,38 +729,39 @@ public com.google.cloud.redis.v1beta1.MaintenancePolicy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.MaintenancePolicy) { - return mergeFrom((com.google.cloud.redis.v1beta1.MaintenancePolicy)other); + return mergeFrom((com.google.cloud.redis.v1beta1.MaintenancePolicy) other); } else { super.mergeFrom(other); return this; @@ -683,7 +769,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.MaintenancePolicy other) { - if (other == com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -712,9 +799,10 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.MaintenancePolicy other) weeklyMaintenanceWindowBuilder_ = null; weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; bitField0_ = (bitField0_ & ~0x00000001); - weeklyMaintenanceWindowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWeeklyMaintenanceWindowFieldBuilder() : null; + weeklyMaintenanceWindowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWeeklyMaintenanceWindowFieldBuilder() + : null; } else { weeklyMaintenanceWindowBuilder_.addAllMessages(other.weeklyMaintenanceWindow_); } @@ -748,43 +836,63 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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) { @@ -800,14 +908,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy 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(); @@ -818,17 +929,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the policy 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; } @@ -840,11 +955,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy 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) { @@ -858,48 +977,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the policy 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 when the policy 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 when the policy 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_; @@ -907,39 +1042,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 time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -955,14 +1109,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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(); @@ -973,17 +1130,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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; } @@ -995,11 +1156,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1013,48 +1178,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 2 [(.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 time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> 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_; @@ -1062,19 +1243,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1083,21 +1266,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1105,84 +1289,102 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. Description of what this policy is for. Create/Update methods
      * return INVALID_ARGUMENT if the length is greater than 512.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } - private java.util.List weeklyMaintenanceWindow_ = - java.util.Collections.emptyList(); + private java.util.List + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + private void ensureWeeklyMaintenanceWindowIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - weeklyMaintenanceWindow_ = new java.util.ArrayList(weeklyMaintenanceWindow_); + weeklyMaintenanceWindow_ = + new java.util.ArrayList( + weeklyMaintenanceWindow_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> weeklyMaintenanceWindowBuilder_; + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> + weeklyMaintenanceWindowBuilder_; /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getWeeklyMaintenanceWindowList() { + public java.util.List + getWeeklyMaintenanceWindowList() { if (weeklyMaintenanceWindowBuilder_ == null) { return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); } else { @@ -1190,13 +1392,17 @@ public java.util.List ge } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getWeeklyMaintenanceWindowCount() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1206,15 +1412,20 @@ public int getWeeklyMaintenanceWindowCount() { } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow( + int index) { if (weeklyMaintenanceWindowBuilder_ == null) { return weeklyMaintenanceWindow_.get(index); } else { @@ -1222,13 +1433,17 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenan } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { @@ -1245,13 +1460,17 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1265,15 +1484,20 @@ public Builder setWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addWeeklyMaintenanceWindow(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { + public Builder addWeeklyMaintenanceWindow( + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { if (weeklyMaintenanceWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1287,13 +1511,17 @@ public Builder addWeeklyMaintenanceWindow(com.google.cloud.redis.v1beta1.WeeklyM return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) { @@ -1310,13 +1538,17 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addWeeklyMaintenanceWindow( com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1330,13 +1562,17 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addWeeklyMaintenanceWindow( int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) { @@ -1350,20 +1586,24 @@ public Builder addWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllWeeklyMaintenanceWindow( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (weeklyMaintenanceWindowBuilder_ == null) { ensureWeeklyMaintenanceWindowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, weeklyMaintenanceWindow_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeklyMaintenanceWindow_); onChanged(); } else { weeklyMaintenanceWindowBuilder_.addAllMessages(values); @@ -1371,13 +1611,17 @@ public Builder addAllWeeklyMaintenanceWindow( return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearWeeklyMaintenanceWindow() { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1390,13 +1634,17 @@ public Builder clearWeeklyMaintenanceWindow() { return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeWeeklyMaintenanceWindow(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { @@ -1409,45 +1657,58 @@ public Builder removeWeeklyMaintenanceWindow(int index) { return this; } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder getWeeklyMaintenanceWindowBuilder( - int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder + getWeeklyMaintenanceWindowBuilder(int index) { return getWeeklyMaintenanceWindowFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( - int index) { + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { if (weeklyMaintenanceWindowBuilder_ == null) { - return weeklyMaintenanceWindow_.get(index); } else { + return weeklyMaintenanceWindow_.get(index); + } else { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getWeeklyMaintenanceWindowOrBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowOrBuilderList() { if (weeklyMaintenanceWindowBuilder_ != null) { return weeklyMaintenanceWindowBuilder_.getMessageOrBuilderList(); } else { @@ -1455,51 +1716,71 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder getWeekly } } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder() { - return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder() { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder( - int index) { - return getWeeklyMaintenanceWindowFieldBuilder().addBuilder( - index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); + public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder(int index) { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()); } /** + * + * *
      * Optional. Maintenance window that is applied to resources covered by this
      * policy. Minimum 1. For the current version, the maximum number of
      * weekly_window is expected to be one.
      * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getWeeklyMaintenanceWindowBuilderList() { + public java.util.List + getWeeklyMaintenanceWindowBuilderList() { return getWeeklyMaintenanceWindowFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder> getWeeklyMaintenanceWindowFieldBuilder() { if (weeklyMaintenanceWindowBuilder_ == null) { - weeklyMaintenanceWindowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>( + weeklyMaintenanceWindowBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow, + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>( weeklyMaintenanceWindow_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1508,9 +1789,9 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder addWeeklyM } return weeklyMaintenanceWindowBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1520,12 +1801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.MaintenancePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.MaintenancePolicy) private static final com.google.cloud.redis.v1beta1.MaintenancePolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.MaintenancePolicy(); } @@ -1534,16 +1815,16 @@ public static com.google.cloud.redis.v1beta1.MaintenancePolicy getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenancePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenancePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1558,6 +1839,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.MaintenancePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java index cfe8be29..27b56220 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java @@ -1,139 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface MaintenancePolicyOrBuilder extends +public interface MaintenancePolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.MaintenancePolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time when the policy 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 when the policy 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 when the policy 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 when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Description of what this policy is for. Create/Update methods
    * return INVALID_ARGUMENT if the length is greater than 512.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getWeeklyMaintenanceWindowList(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getWeeklyMaintenanceWindowCount(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getWeeklyMaintenanceWindowOrBuilderList(); /** + * + * *
    * Optional. Maintenance window that is applied to resources covered by this
    * policy. Minimum 1. For the current version, the maximum number of
    * weekly_window is expected to be one.
    * 
* - * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder( - int index); + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java index f5cd5da2..f33a54b0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceSchedule.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
  * populated.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.MaintenanceSchedule}
  */
-public final class MaintenanceSchedule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MaintenanceSchedule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.MaintenanceSchedule)
     MaintenanceScheduleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MaintenanceSchedule.newBuilder() to construct.
   private MaintenanceSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MaintenanceSchedule() {
-  }
+
+  private MaintenanceSchedule() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MaintenanceSchedule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MaintenanceSchedule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,57 +69,63 @@ private MaintenanceSchedule(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
-            }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
-            }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 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 24: {
-
-            canReschedule_ = input.readBool();
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (scheduleDeadlineTime_ != null) {
-              subBuilder = scheduleDeadlineTime_.toBuilder();
+              break;
             }
-            scheduleDeadlineTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(scheduleDeadlineTime_);
-              scheduleDeadlineTime_ = subBuilder.buildPartial();
+          case 24:
+            {
+              canReschedule_ = input.readBool();
+              break;
             }
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (scheduleDeadlineTime_ != null) {
+                subBuilder = scheduleDeadlineTime_.toBuilder();
+              }
+              scheduleDeadlineTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(scheduleDeadlineTime_);
+                scheduleDeadlineTime_ = 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) {
@@ -111,34 +133,40 @@ private MaintenanceSchedule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.MaintenanceSchedule.class, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
+            com.google.cloud.redis.v1beta1.MaintenanceSchedule.class,
+            com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
   }
 
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -146,11 +174,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -158,11 +190,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -172,11 +207,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -184,11 +223,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 @@ -196,11 +239,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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() { @@ -210,29 +256,38 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int CAN_RESCHEDULE_FIELD_NUMBER = 3; private boolean canReschedule_; /** + * + * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated public boolean getCanReschedule() { + @java.lang.Deprecated + public boolean getCanReschedule() { return canReschedule_; } public static final int SCHEDULE_DEADLINE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp scheduleDeadlineTime_; /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the scheduleDeadlineTime field is set. */ @java.lang.Override @@ -240,25 +295,36 @@ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTime_ != null; } /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The scheduleDeadlineTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleDeadlineTime() { - return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleDeadlineTime_; } /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { @@ -266,6 +332,7 @@ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,8 +344,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -301,20 +367,17 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (canReschedule_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, canReschedule_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, canReschedule_); } if (scheduleDeadlineTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getScheduleDeadlineTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScheduleDeadlineTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -324,29 +387,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.redis.v1beta1.MaintenanceSchedule)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.MaintenanceSchedule other = (com.google.cloud.redis.v1beta1.MaintenanceSchedule) obj; + com.google.cloud.redis.v1beta1.MaintenanceSchedule other = + (com.google.cloud.redis.v1beta1.MaintenanceSchedule) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (getCanReschedule() - != other.getCanReschedule()) return false; + if (getCanReschedule() != other.getCanReschedule()) return false; if (hasScheduleDeadlineTime() != other.hasScheduleDeadlineTime()) return false; if (hasScheduleDeadlineTime()) { - if (!getScheduleDeadlineTime() - .equals(other.getScheduleDeadlineTime())) return false; + if (!getScheduleDeadlineTime().equals(other.getScheduleDeadlineTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -368,8 +428,7 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + CAN_RESCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanReschedule()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanReschedule()); if (hasScheduleDeadlineTime()) { hash = (37 * hash) + SCHEDULE_DEADLINE_TIME_FIELD_NUMBER; hash = (53 * hash) + getScheduleDeadlineTime().hashCode(); @@ -380,96 +439,103 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.MaintenanceSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.MaintenanceSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
    * populated.
@@ -477,21 +543,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.MaintenanceSchedule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.MaintenanceSchedule)
       com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.MaintenanceSchedule.class, com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
+              com.google.cloud.redis.v1beta1.MaintenanceSchedule.class,
+              com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.MaintenanceSchedule.newBuilder()
@@ -499,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();
@@ -536,9 +603,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_MaintenanceSchedule_descriptor;
     }
 
     @java.lang.Override
@@ -557,7 +624,8 @@ public com.google.cloud.redis.v1beta1.MaintenanceSchedule build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.MaintenanceSchedule buildPartial() {
-      com.google.cloud.redis.v1beta1.MaintenanceSchedule result = new com.google.cloud.redis.v1beta1.MaintenanceSchedule(this);
+      com.google.cloud.redis.v1beta1.MaintenanceSchedule result =
+          new com.google.cloud.redis.v1beta1.MaintenanceSchedule(this);
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
       } else {
@@ -582,38 +650,39 @@ public com.google.cloud.redis.v1beta1.MaintenanceSchedule buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.MaintenanceSchedule) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.MaintenanceSchedule)other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.MaintenanceSchedule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -621,7 +690,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1beta1.MaintenanceSchedule other) {
-      if (other == com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance())
+        return this;
       if (other.hasStartTime()) {
         mergeStartTime(other.getStartTime());
       }
@@ -653,7 +723,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.redis.v1beta1.MaintenanceSchedule) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.redis.v1beta1.MaintenanceSchedule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -665,24 +736,35 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        startTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -693,11 +775,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -713,14 +798,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -731,17 +818,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -753,11 +843,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -771,48 +864,59 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. The start time of any upcoming scheduled maintenance for this instance.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -820,24 +924,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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() { @@ -848,11 +963,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -868,14 +986,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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(); @@ -886,17 +1006,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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; } @@ -908,11 +1031,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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) { @@ -926,97 +1052,120 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
      * 
* - * .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_; } - private boolean canReschedule_ ; + private boolean canReschedule_; /** + * + * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return The canReschedule. */ @java.lang.Override - @java.lang.Deprecated public boolean getCanReschedule() { + @java.lang.Deprecated + public boolean getCanReschedule() { return canReschedule_; } /** + * + * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @param value The canReschedule to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setCanReschedule(boolean value) { - + @java.lang.Deprecated + public Builder setCanReschedule(boolean value) { + canReschedule_ = value; onChanged(); return this; } /** + * + * *
      * If the scheduled maintenance can be rescheduled, default is true.
      * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearCanReschedule() { - + @java.lang.Deprecated + public Builder clearCanReschedule() { + canReschedule_ = false; onChanged(); return this; @@ -1024,42 +1173,61 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp scheduleDeadlineTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleDeadlineTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleDeadlineTimeBuilder_; /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the scheduleDeadlineTime field is set. */ public boolean hasScheduleDeadlineTime() { return scheduleDeadlineTimeBuilder_ != null || scheduleDeadlineTime_ != null; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The scheduleDeadlineTime. */ public com.google.protobuf.Timestamp getScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { - return scheduleDeadlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleDeadlineTime_; } else { return scheduleDeadlineTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1075,15 +1243,18 @@ public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setScheduleDeadlineTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleDeadlineTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleDeadlineTimeBuilder_ == null) { scheduleDeadlineTime_ = builderForValue.build(); onChanged(); @@ -1094,18 +1265,24 @@ public Builder setScheduleDeadlineTime( return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { if (scheduleDeadlineTimeBuilder_ == null) { if (scheduleDeadlineTime_ != null) { scheduleDeadlineTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleDeadlineTime_) + .mergeFrom(value) + .buildPartial(); } else { scheduleDeadlineTime_ = value; } @@ -1117,12 +1294,16 @@ public Builder mergeScheduleDeadlineTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearScheduleDeadlineTime() { if (scheduleDeadlineTimeBuilder_ == null) { @@ -1136,58 +1317,74 @@ public Builder clearScheduleDeadlineTime() { return this; } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getScheduleDeadlineTimeBuilder() { - + onChanged(); return getScheduleDeadlineTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder() { if (scheduleDeadlineTimeBuilder_ != null) { return scheduleDeadlineTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleDeadlineTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduleDeadlineTime_; + return scheduleDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleDeadlineTime_; } } /** + * + * *
      * Output only. The deadline that the maintenance schedule start time can not go beyond,
      * including reschedule.
      * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.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> getScheduleDeadlineTimeFieldBuilder() { if (scheduleDeadlineTimeBuilder_ == null) { - scheduleDeadlineTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduleDeadlineTime(), - getParentForChildren(), - isClean()); + scheduleDeadlineTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleDeadlineTime(), getParentForChildren(), isClean()); scheduleDeadlineTime_ = null; } return scheduleDeadlineTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1197,12 +1394,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.MaintenanceSchedule) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.MaintenanceSchedule) private static final com.google.cloud.redis.v1beta1.MaintenanceSchedule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.MaintenanceSchedule(); } @@ -1211,16 +1408,16 @@ public static com.google.cloud.redis.v1beta1.MaintenanceSchedule getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceSchedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenanceSchedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceSchedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1235,6 +1432,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.MaintenanceSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java index 6e35dfdf..ef4a422a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenanceScheduleOrBuilder.java @@ -1,105 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface MaintenanceScheduleOrBuilder extends +public interface MaintenanceScheduleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.MaintenanceSchedule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. The start time of any upcoming scheduled maintenance for this instance.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. The end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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 end time of any upcoming scheduled maintenance for this instance.
    * 
* - * .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(); /** + * + * *
    * If the scheduled maintenance can be rescheduled, default is true.
    * 
* * bool can_reschedule = 3 [deprecated = true]; - * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. - * See google/cloud/redis/v1beta1/cloud_redis.proto;l=627 + * + * @deprecated google.cloud.redis.v1beta1.MaintenanceSchedule.can_reschedule is deprecated. See + * google/cloud/redis/v1beta1/cloud_redis.proto;l=627 * @return The canReschedule. */ - @java.lang.Deprecated boolean getCanReschedule(); + @java.lang.Deprecated + boolean getCanReschedule(); /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the scheduleDeadlineTime field is set. */ boolean hasScheduleDeadlineTime(); /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The scheduleDeadlineTime. */ com.google.protobuf.Timestamp getScheduleDeadlineTime(); /** + * + * *
    * Output only. The deadline that the maintenance schedule start time can not go beyond,
    * including reschedule.
    * 
* - * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getScheduleDeadlineTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java index 92329458..597455df 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Node specific properties.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.NodeInfo} */ -public final class NodeInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NodeInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.NodeInfo) NodeInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NodeInfo.newBuilder() to construct. private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NodeInfo() { id_ = ""; zone_ = ""; @@ -26,16 +44,15 @@ private NodeInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NodeInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private NodeInfo( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - zone_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + zone_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private NodeInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.NodeInfo.class, com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); + com.google.cloud.redis.v1beta1.NodeInfo.class, + com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -149,11 +173,14 @@ public java.lang.String getId() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ @java.lang.Override @@ -162,29 +189,29 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -193,6 +220,7 @@ public java.lang.String getZone() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +232,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -235,17 +262,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.redis.v1beta1.NodeInfo)) { return super.equals(obj); } com.google.cloud.redis.v1beta1.NodeInfo other = (com.google.cloud.redis.v1beta1.NodeInfo) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getZone() - .equals(other.getZone())) return false; + if (!getId().equals(other.getId())) return false; + if (!getZone().equals(other.getZone())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,118 +291,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.NodeInfo 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.redis.v1beta1.NodeInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.NodeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Node specific properties.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.NodeInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.NodeInfo) com.google.cloud.redis.v1beta1.NodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.NodeInfo.class, com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); + com.google.cloud.redis.v1beta1.NodeInfo.class, + com.google.cloud.redis.v1beta1.NodeInfo.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.NodeInfo.newBuilder() @@ -385,16 +419,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 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor; } @java.lang.Override @@ -427,7 +460,8 @@ public com.google.cloud.redis.v1beta1.NodeInfo build() { @java.lang.Override public com.google.cloud.redis.v1beta1.NodeInfo buildPartial() { - com.google.cloud.redis.v1beta1.NodeInfo result = new com.google.cloud.redis.v1beta1.NodeInfo(this); + com.google.cloud.redis.v1beta1.NodeInfo result = + new com.google.cloud.redis.v1beta1.NodeInfo(this); result.id_ = id_; result.zone_ = zone_; onBuilt(); @@ -438,38 +472,39 @@ public com.google.cloud.redis.v1beta1.NodeInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.NodeInfo) { - return mergeFrom((com.google.cloud.redis.v1beta1.NodeInfo)other); + return mergeFrom((com.google.cloud.redis.v1beta1.NodeInfo) other); } else { super.mergeFrom(other); return this; @@ -517,18 +552,20 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -537,20 +574,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -558,54 +596,61 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Output only. Node identifying string. e.g. 'node-0', 'node-1'
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -613,18 +658,20 @@ public Builder setIdBytes( private java.lang.Object zone_ = ""; /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -633,20 +680,21 @@ public java.lang.String getZone() { } } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -654,61 +702,68 @@ public java.lang.String getZone() { } } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone( - java.lang.String value) { + public Builder setZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** + * + * *
      * Output only. Location of the node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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 +773,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.NodeInfo) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.NodeInfo) private static final com.google.cloud.redis.v1beta1.NodeInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.NodeInfo(); } @@ -732,16 +787,16 @@ public static com.google.cloud.redis.v1beta1.NodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +811,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.NodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java index 609a3241..fd5c5ba2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfoOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface NodeInfoOrBuilder extends +public interface NodeInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.NodeInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only. Node identifying string. e.g. 'node-0', 'node-1'
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ java.lang.String getZone(); /** + * + * *
    * Output only. Location of the node.
    * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ - com.google.protobuf.ByteString - getZoneBytes(); + com.google.protobuf.ByteString getZoneBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java index 0dc92fe1..48f58b9b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfig.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * The output content
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,30 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.redis.v1beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.redis.v1beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.redis.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.redis.v1beta1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.redis.v1beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.redis.v1beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destinationCase_ = 1; - 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) { @@ -80,34 +99,39 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.OutputConfig.class, com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); + com.google.cloud.redis.v1beta1.OutputConfig.class, + com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -123,29 +147,34 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -153,21 +182,26 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; + return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; } return com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
@@ -177,12 +211,13 @@ public com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; + return (com.google.cloud.redis.v1beta1.GcsDestination) destination_; } return com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.redis.v1beta1.GcsDestination) destination_); } @@ -209,8 +243,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.redis.v1beta1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.redis.v1beta1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -220,18 +255,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.redis.v1beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.OutputConfig other = (com.google.cloud.redis.v1beta1.OutputConfig) obj; + com.google.cloud.redis.v1beta1.OutputConfig other = + (com.google.cloud.redis.v1beta1.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -260,118 +295,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.OutputConfig 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.redis.v1beta1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 output content
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.OutputConfig) com.google.cloud.redis.v1beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.OutputConfig.class, com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); + com.google.cloud.redis.v1beta1.OutputConfig.class, + com.google.cloud.redis.v1beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.OutputConfig.newBuilder() @@ -379,16 +423,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_OutputConfig_descriptor; } @java.lang.Override @@ -419,7 +462,8 @@ public com.google.cloud.redis.v1beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.redis.v1beta1.OutputConfig buildPartial() { - com.google.cloud.redis.v1beta1.OutputConfig result = new com.google.cloud.redis.v1beta1.OutputConfig(this); + com.google.cloud.redis.v1beta1.OutputConfig result = + new com.google.cloud.redis.v1beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -436,38 +480,39 @@ public com.google.cloud.redis.v1beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.OutputConfig) { - return mergeFrom((com.google.cloud.redis.v1beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.redis.v1beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -477,13 +522,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.redis.v1beta1.OutputConfig other) { if (other == com.google.cloud.redis.v1beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -513,12 +560,12 @@ public Builder mergeFrom( } return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -528,15 +575,20 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsDestination, com.google.cloud.redis.v1beta1.GcsDestination.Builder, com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.redis.v1beta1.GcsDestination, + com.google.cloud.redis.v1beta1.GcsDestination.Builder, + com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -544,11 +596,14 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -566,6 +621,8 @@ public com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -586,6 +643,8 @@ public Builder setGcsDestination(com.google.cloud.redis.v1beta1.GcsDestination v return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -604,6 +663,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -612,10 +673,13 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.redis.v1beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.redis.v1beta1.GcsDestination.newBuilder((com.google.cloud.redis.v1beta1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.redis.v1beta1.GcsDestination.newBuilder( + (com.google.cloud.redis.v1beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -631,6 +695,8 @@ public Builder mergeGcsDestination(com.google.cloud.redis.v1beta1.GcsDestination return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -654,6 +720,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -664,6 +732,8 @@ public com.google.cloud.redis.v1beta1.GcsDestination.Builder getGcsDestinationBu return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -682,6 +752,8 @@ public com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder getGcsDestinationO } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * 
@@ -689,26 +761,32 @@ public com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder getGcsDestinationO * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsDestination, com.google.cloud.redis.v1beta1.GcsDestination.Builder, com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> + com.google.cloud.redis.v1beta1.GcsDestination, + com.google.cloud.redis.v1beta1.GcsDestination.Builder, + com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.redis.v1beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.GcsDestination, com.google.cloud.redis.v1beta1.GcsDestination.Builder, com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.GcsDestination, + com.google.cloud.redis.v1beta1.GcsDestination.Builder, + com.google.cloud.redis.v1beta1.GcsDestinationOrBuilder>( (com.google.cloud.redis.v1beta1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } + @java.lang.Override - 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 +796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.OutputConfig) private static final com.google.cloud.redis.v1beta1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.OutputConfig(); } @@ -732,16 +810,16 @@ public static com.google.cloud.redis.v1beta1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +834,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java index 97a9d74f..1579c9b4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/OutputConfigOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
* * .google.cloud.redis.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.redis.v1beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java index 62dbe0ac..9ae07e46 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfig.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Configuration of the persistence functionality.
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.PersistenceConfig} */ -public final class PersistenceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PersistenceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.PersistenceConfig) PersistenceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistenceConfig.newBuilder() to construct. private PersistenceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PersistenceConfig() { persistenceMode_ = 0; rdbSnapshotPeriod_ = 0; @@ -26,16 +44,15 @@ private PersistenceConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersistenceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PersistenceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,51 +71,57 @@ private PersistenceConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - persistenceMode_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - rdbSnapshotPeriod_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (rdbNextSnapshotTime_ != null) { - subBuilder = rdbNextSnapshotTime_.toBuilder(); - } - rdbNextSnapshotTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rdbNextSnapshotTime_); - rdbNextSnapshotTime_ = subBuilder.buildPartial(); + persistenceMode_ = rawValue; + break; } + case 16: + { + int rawValue = input.readEnum(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (rdbSnapshotStartTime_ != null) { - subBuilder = rdbSnapshotStartTime_.toBuilder(); + rdbSnapshotPeriod_ = rawValue; + break; } - rdbSnapshotStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rdbSnapshotStartTime_); - rdbSnapshotStartTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (rdbNextSnapshotTime_ != null) { + subBuilder = rdbNextSnapshotTime_.toBuilder(); + } + rdbNextSnapshotTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rdbNextSnapshotTime_); + rdbNextSnapshotTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (rdbSnapshotStartTime_ != null) { + subBuilder = rdbSnapshotStartTime_.toBuilder(); + } + rdbSnapshotStartTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rdbSnapshotStartTime_); + rdbSnapshotStartTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,36 +129,41 @@ private PersistenceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.PersistenceConfig.class, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); + com.google.cloud.redis.v1beta1.PersistenceConfig.class, + com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); } /** + * + * *
    * Available Persistence modes.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode} */ - public enum PersistenceMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -144,6 +172,8 @@ public enum PersistenceMode */ PERSISTENCE_MODE_UNSPECIFIED(0), /** + * + * *
      * Persistence is disabled for the instance,
      * and any existing snapshots are deleted.
@@ -153,6 +183,8 @@ public enum PersistenceMode
      */
     DISABLED(1),
     /**
+     *
+     *
      * 
      * RDB based Persistence is enabled.
      * 
@@ -164,6 +196,8 @@ public enum PersistenceMode ; /** + * + * *
      * Not set.
      * 
@@ -172,6 +206,8 @@ public enum PersistenceMode */ public static final int PERSISTENCE_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Persistence is disabled for the instance,
      * and any existing snapshots are deleted.
@@ -181,6 +217,8 @@ public enum PersistenceMode
      */
     public static final int DISABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * RDB based Persistence is enabled.
      * 
@@ -189,7 +227,6 @@ public enum PersistenceMode */ public static final int RDB_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -214,39 +251,42 @@ public static PersistenceMode valueOf(int value) { */ public static PersistenceMode forNumber(int value) { switch (value) { - case 0: return PERSISTENCE_MODE_UNSPECIFIED; - case 1: return DISABLED; - case 2: return RDB; - default: return null; + case 0: + return PERSISTENCE_MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return RDB; + 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< - PersistenceMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PersistenceMode findValueByNumber(int number) { - return PersistenceMode.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 PersistenceMode findValueByNumber(int number) { + return PersistenceMode.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.redis.v1beta1.PersistenceConfig.getDescriptor().getEnumTypes().get(0); } @@ -255,8 +295,7 @@ public PersistenceMode findValueByNumber(int number) { public static PersistenceMode 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; @@ -274,15 +313,18 @@ private PersistenceMode(int value) { } /** + * + * *
    * Available snapshot periods for scheduling.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod} */ - public enum SnapshotPeriod - implements com.google.protobuf.ProtocolMessageEnum { + public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -291,6 +333,8 @@ public enum SnapshotPeriod */ SNAPSHOT_PERIOD_UNSPECIFIED(0), /** + * + * *
      * Snapshot every 1 hour.
      * 
@@ -299,6 +343,8 @@ public enum SnapshotPeriod */ ONE_HOUR(3), /** + * + * *
      * Snapshot every 6 hours.
      * 
@@ -307,6 +353,8 @@ public enum SnapshotPeriod */ SIX_HOURS(4), /** + * + * *
      * Snapshot every 12 hours.
      * 
@@ -315,6 +363,8 @@ public enum SnapshotPeriod */ TWELVE_HOURS(5), /** + * + * *
      * Snapshot every 24 hours.
      * 
@@ -326,6 +376,8 @@ public enum SnapshotPeriod ; /** + * + * *
      * Not set.
      * 
@@ -334,6 +386,8 @@ public enum SnapshotPeriod */ public static final int SNAPSHOT_PERIOD_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Snapshot every 1 hour.
      * 
@@ -342,6 +396,8 @@ public enum SnapshotPeriod */ public static final int ONE_HOUR_VALUE = 3; /** + * + * *
      * Snapshot every 6 hours.
      * 
@@ -350,6 +406,8 @@ public enum SnapshotPeriod */ public static final int SIX_HOURS_VALUE = 4; /** + * + * *
      * Snapshot every 12 hours.
      * 
@@ -358,6 +416,8 @@ public enum SnapshotPeriod */ public static final int TWELVE_HOURS_VALUE = 5; /** + * + * *
      * Snapshot every 24 hours.
      * 
@@ -366,7 +426,6 @@ public enum SnapshotPeriod */ public static final int TWENTY_FOUR_HOURS_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -391,51 +450,53 @@ public static SnapshotPeriod valueOf(int value) { */ public static SnapshotPeriod forNumber(int value) { switch (value) { - case 0: return SNAPSHOT_PERIOD_UNSPECIFIED; - case 3: return ONE_HOUR; - case 4: return SIX_HOURS; - case 5: return TWELVE_HOURS; - case 6: return TWENTY_FOUR_HOURS; - default: return null; + case 0: + return SNAPSHOT_PERIOD_UNSPECIFIED; + case 3: + return ONE_HOUR; + case 4: + return SIX_HOURS; + case 5: + return TWELVE_HOURS; + case 6: + return TWENTY_FOUR_HOURS; + 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< - SnapshotPeriod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotPeriod findValueByNumber(int number) { - return SnapshotPeriod.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 SnapshotPeriod findValueByNumber(int number) { + return SnapshotPeriod.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.redis.v1beta1.PersistenceConfig.getDescriptor().getEnumTypes().get(1); } private static final SnapshotPeriod[] VALUES = values(); - public static SnapshotPeriod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SnapshotPeriod 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; @@ -455,35 +516,52 @@ private SnapshotPeriod(int value) { public static final int PERSISTENCE_MODE_FIELD_NUMBER = 1; private int persistenceMode_; /** + * + * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for persistenceMode. */ - @java.lang.Override public int getPersistenceModeValue() { + @java.lang.Override + public int getPersistenceModeValue() { return persistenceMode_; } /** + * + * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The persistenceMode. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf(persistenceMode_); - return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = + com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf(persistenceMode_); + return result == null + ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED + : result; } public static final int RDB_SNAPSHOT_PERIOD_FIELD_NUMBER = 2; private int rdbSnapshotPeriod_; /** + * + * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -493,13 +571,19 @@ private SnapshotPeriod(int value) {
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for rdbSnapshotPeriod. */ - @java.lang.Override public int getRdbSnapshotPeriodValue() { + @java.lang.Override + public int getRdbSnapshotPeriodValue() { return rdbSnapshotPeriod_; } /** + * + * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -509,23 +593,35 @@ private SnapshotPeriod(int value) {
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rdbSnapshotPeriod. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf(rdbSnapshotPeriod_); - return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = + com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf(rdbSnapshotPeriod_); + return result == null + ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED + : result; } public static final int RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp rdbNextSnapshotTime_; /** + * + * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the rdbNextSnapshotTime field is set. */ @java.lang.Override @@ -533,23 +629,34 @@ public boolean hasRdbNextSnapshotTime() { return rdbNextSnapshotTime_ != null; } /** + * + * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The rdbNextSnapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRdbNextSnapshotTime() { - return rdbNextSnapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbNextSnapshotTime_; + return rdbNextSnapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbNextSnapshotTime_; } /** + * + * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() { @@ -559,13 +666,18 @@ public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() public static final int RDB_SNAPSHOT_START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp rdbSnapshotStartTime_; /** + * + * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the rdbSnapshotStartTime field is set. */ @java.lang.Override @@ -573,27 +685,38 @@ public boolean hasRdbSnapshotStartTime() { return rdbSnapshotStartTime_ != null; } /** + * + * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rdbSnapshotStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { - return rdbSnapshotStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbSnapshotStartTime_; + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; } /** + * + * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { @@ -601,6 +724,7 @@ public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -612,12 +736,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (persistenceMode_ != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.PERSISTENCE_MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (persistenceMode_ + != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode + .PERSISTENCE_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, persistenceMode_); } - if (rdbSnapshotPeriod_ != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.SNAPSHOT_PERIOD_UNSPECIFIED.getNumber()) { + if (rdbSnapshotPeriod_ + != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod + .SNAPSHOT_PERIOD_UNSPECIFIED + .getNumber()) { output.writeEnum(2, rdbSnapshotPeriod_); } if (rdbNextSnapshotTime_ != null) { @@ -635,21 +764,24 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (persistenceMode_ != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.PERSISTENCE_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, persistenceMode_); - } - if (rdbSnapshotPeriod_ != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.SNAPSHOT_PERIOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, rdbSnapshotPeriod_); + if (persistenceMode_ + != com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode + .PERSISTENCE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, persistenceMode_); + } + if (rdbSnapshotPeriod_ + != com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod + .SNAPSHOT_PERIOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rdbSnapshotPeriod_); } if (rdbNextSnapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getRdbNextSnapshotTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRdbNextSnapshotTime()); } if (rdbSnapshotStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRdbSnapshotStartTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRdbSnapshotStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -659,24 +791,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.redis.v1beta1.PersistenceConfig)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.PersistenceConfig other = (com.google.cloud.redis.v1beta1.PersistenceConfig) obj; + com.google.cloud.redis.v1beta1.PersistenceConfig other = + (com.google.cloud.redis.v1beta1.PersistenceConfig) obj; if (persistenceMode_ != other.persistenceMode_) return false; if (rdbSnapshotPeriod_ != other.rdbSnapshotPeriod_) return false; if (hasRdbNextSnapshotTime() != other.hasRdbNextSnapshotTime()) return false; if (hasRdbNextSnapshotTime()) { - if (!getRdbNextSnapshotTime() - .equals(other.getRdbNextSnapshotTime())) return false; + if (!getRdbNextSnapshotTime().equals(other.getRdbNextSnapshotTime())) return false; } if (hasRdbSnapshotStartTime() != other.hasRdbSnapshotStartTime()) return false; if (hasRdbSnapshotStartTime()) { - if (!getRdbSnapshotStartTime() - .equals(other.getRdbSnapshotStartTime())) return false; + if (!getRdbSnapshotStartTime().equals(other.getRdbSnapshotStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -706,118 +837,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.PersistenceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.PersistenceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.PersistenceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration of the persistence functionality.
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.PersistenceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.PersistenceConfig) com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.PersistenceConfig.class, com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); + com.google.cloud.redis.v1beta1.PersistenceConfig.class, + com.google.cloud.redis.v1beta1.PersistenceConfig.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.PersistenceConfig.newBuilder() @@ -825,16 +965,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(); @@ -858,9 +997,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_PersistenceConfig_descriptor; } @java.lang.Override @@ -879,7 +1018,8 @@ public com.google.cloud.redis.v1beta1.PersistenceConfig build() { @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig buildPartial() { - com.google.cloud.redis.v1beta1.PersistenceConfig result = new com.google.cloud.redis.v1beta1.PersistenceConfig(this); + com.google.cloud.redis.v1beta1.PersistenceConfig result = + new com.google.cloud.redis.v1beta1.PersistenceConfig(this); result.persistenceMode_ = persistenceMode_; result.rdbSnapshotPeriod_ = rdbSnapshotPeriod_; if (rdbNextSnapshotTimeBuilder_ == null) { @@ -900,38 +1040,39 @@ public com.google.cloud.redis.v1beta1.PersistenceConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.PersistenceConfig) { - return mergeFrom((com.google.cloud.redis.v1beta1.PersistenceConfig)other); + return mergeFrom((com.google.cloud.redis.v1beta1.PersistenceConfig) other); } else { super.mergeFrom(other); return this; @@ -939,7 +1080,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.PersistenceConfig other) { - if (other == com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance()) + return this; if (other.persistenceMode_ != 0) { setPersistenceModeValue(other.getPersistenceModeValue()); } @@ -983,78 +1125,109 @@ public Builder mergeFrom( private int persistenceMode_ = 0; /** + * + * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for persistenceMode. */ - @java.lang.Override public int getPersistenceModeValue() { + @java.lang.Override + public int getPersistenceModeValue() { return persistenceMode_; } /** + * + * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for persistenceMode to set. * @return This builder for chaining. */ public Builder setPersistenceModeValue(int value) { - + persistenceMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The persistenceMode. */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf(persistenceMode_); - return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode result = + com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.valueOf( + persistenceMode_); + return result == null + ? com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The persistenceMode to set. * @return This builder for chaining. */ - public Builder setPersistenceMode(com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode value) { + public Builder setPersistenceMode( + com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode value) { if (value == null) { throw new NullPointerException(); } - + persistenceMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Controls whether Persistence features are enabled.
      * If not provided, the existing value will be used.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPersistenceMode() { - + persistenceMode_ = 0; onChanged(); return this; @@ -1062,6 +1235,8 @@ public Builder clearPersistenceMode() { private int rdbSnapshotPeriod_ = 0; /** + * + * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1071,13 +1246,19 @@ public Builder clearPersistenceMode() {
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for rdbSnapshotPeriod. */ - @java.lang.Override public int getRdbSnapshotPeriodValue() { + @java.lang.Override + public int getRdbSnapshotPeriodValue() { return rdbSnapshotPeriod_; } /** + * + * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1087,17 +1268,22 @@ public Builder clearPersistenceMode() {
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for rdbSnapshotPeriod to set. * @return This builder for chaining. */ public Builder setRdbSnapshotPeriodValue(int value) { - + rdbSnapshotPeriod_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1107,16 +1293,25 @@ public Builder setRdbSnapshotPeriodValue(int value) {
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rdbSnapshotPeriod. */ @java.lang.Override public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf(rdbSnapshotPeriod_); - return result == null ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod result = + com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.valueOf( + rdbSnapshotPeriod_); + return result == null + ? com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1126,20 +1321,26 @@ public com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSna
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The rdbSnapshotPeriod to set. * @return This builder for chaining. */ - public Builder setRdbSnapshotPeriod(com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod value) { + public Builder setRdbSnapshotPeriod( + com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod value) { if (value == null) { throw new NullPointerException(); } - + rdbSnapshotPeriod_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Period between RDB snapshots. Snapshots will be attempted every period
      * starting from the provided snapshot start time. For example, a start time
@@ -1149,11 +1350,14 @@ public Builder setRdbSnapshotPeriod(com.google.cloud.redis.v1beta1.PersistenceCo
      * If not provided, TWENTY_FOUR_HOURS will be used as default.
      * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRdbSnapshotPeriod() { - + rdbSnapshotPeriod_ = 0; onChanged(); return this; @@ -1161,39 +1365,58 @@ public Builder clearRdbSnapshotPeriod() { private com.google.protobuf.Timestamp rdbNextSnapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> rdbNextSnapshotTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + rdbNextSnapshotTimeBuilder_; /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the rdbNextSnapshotTime field is set. */ public boolean hasRdbNextSnapshotTime() { return rdbNextSnapshotTimeBuilder_ != null || rdbNextSnapshotTime_ != null; } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The rdbNextSnapshotTime. */ public com.google.protobuf.Timestamp getRdbNextSnapshotTime() { if (rdbNextSnapshotTimeBuilder_ == null) { - return rdbNextSnapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbNextSnapshotTime_; + return rdbNextSnapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbNextSnapshotTime_; } else { return rdbNextSnapshotTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { if (rdbNextSnapshotTimeBuilder_ == null) { @@ -1209,14 +1432,17 @@ public Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRdbNextSnapshotTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (rdbNextSnapshotTimeBuilder_ == null) { rdbNextSnapshotTime_ = builderForValue.build(); onChanged(); @@ -1227,17 +1453,23 @@ public Builder setRdbNextSnapshotTime( return this; } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { if (rdbNextSnapshotTimeBuilder_ == null) { if (rdbNextSnapshotTime_ != null) { rdbNextSnapshotTime_ = - com.google.protobuf.Timestamp.newBuilder(rdbNextSnapshotTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(rdbNextSnapshotTime_) + .mergeFrom(value) + .buildPartial(); } else { rdbNextSnapshotTime_ = value; } @@ -1249,11 +1481,15 @@ public Builder mergeRdbNextSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRdbNextSnapshotTime() { if (rdbNextSnapshotTimeBuilder_ == null) { @@ -1267,48 +1503,64 @@ public Builder clearRdbNextSnapshotTime() { return this; } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getRdbNextSnapshotTimeBuilder() { - + onChanged(); return getRdbNextSnapshotTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() { if (rdbNextSnapshotTimeBuilder_ != null) { return rdbNextSnapshotTimeBuilder_.getMessageOrBuilder(); } else { - return rdbNextSnapshotTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : rdbNextSnapshotTime_; + return rdbNextSnapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbNextSnapshotTime_; } } /** + * + * *
      * Output only. The next time that a snapshot attempt is scheduled to occur.
      * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getRdbNextSnapshotTimeFieldBuilder() { if (rdbNextSnapshotTimeBuilder_ == null) { - rdbNextSnapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRdbNextSnapshotTime(), - getParentForChildren(), - isClean()); + rdbNextSnapshotTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRdbNextSnapshotTime(), getParentForChildren(), isClean()); rdbNextSnapshotTime_ = null; } return rdbNextSnapshotTimeBuilder_; @@ -1316,45 +1568,64 @@ public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder() private com.google.protobuf.Timestamp rdbSnapshotStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> rdbSnapshotStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + rdbSnapshotStartTimeBuilder_; /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the rdbSnapshotStartTime field is set. */ public boolean hasRdbSnapshotStartTime() { return rdbSnapshotStartTimeBuilder_ != null || rdbSnapshotStartTime_ != null; } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rdbSnapshotStartTime. */ public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { if (rdbSnapshotStartTimeBuilder_ == null) { - return rdbSnapshotStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rdbSnapshotStartTime_; + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; } else { return rdbSnapshotStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { if (rdbSnapshotStartTimeBuilder_ == null) { @@ -1370,16 +1641,19 @@ public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRdbSnapshotStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (rdbSnapshotStartTimeBuilder_ == null) { rdbSnapshotStartTime_ = builderForValue.build(); onChanged(); @@ -1390,19 +1664,25 @@ public Builder setRdbSnapshotStartTime( return this; } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { if (rdbSnapshotStartTimeBuilder_ == null) { if (rdbSnapshotStartTime_ != null) { rdbSnapshotStartTime_ = - com.google.protobuf.Timestamp.newBuilder(rdbSnapshotStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(rdbSnapshotStartTime_) + .mergeFrom(value) + .buildPartial(); } else { rdbSnapshotStartTime_ = value; } @@ -1414,13 +1694,17 @@ public Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRdbSnapshotStartTime() { if (rdbSnapshotStartTimeBuilder_ == null) { @@ -1434,61 +1718,77 @@ public Builder clearRdbSnapshotStartTime() { return this; } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getRdbSnapshotStartTimeBuilder() { - + onChanged(); return getRdbSnapshotStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { if (rdbSnapshotStartTimeBuilder_ != null) { return rdbSnapshotStartTimeBuilder_.getMessageOrBuilder(); } else { - return rdbSnapshotStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : rdbSnapshotStartTime_; + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; } } /** + * + * *
      * Optional. Date and time that the first snapshot was/will be attempted, and to which
      * future snapshots will be aligned.
      * If not provided, the current time will be used.
      * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getRdbSnapshotStartTimeFieldBuilder() { if (rdbSnapshotStartTimeBuilder_ == null) { - rdbSnapshotStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRdbSnapshotStartTime(), - getParentForChildren(), - isClean()); + rdbSnapshotStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRdbSnapshotStartTime(), getParentForChildren(), isClean()); rdbSnapshotStartTime_ = null; } return rdbSnapshotStartTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1498,12 +1798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.PersistenceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.PersistenceConfig) private static final com.google.cloud.redis.v1beta1.PersistenceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.PersistenceConfig(); } @@ -1512,16 +1812,16 @@ public static com.google.cloud.redis.v1beta1.PersistenceConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistenceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PersistenceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistenceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersistenceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1536,6 +1836,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.PersistenceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java index 90995759..02ea1438 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/PersistenceConfigOrBuilder.java @@ -1,34 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface PersistenceConfigOrBuilder extends +public interface PersistenceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.PersistenceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for persistenceMode. */ int getPersistenceModeValue(); /** + * + * *
    * Optional. Controls whether Persistence features are enabled.
    * If not provided, the existing value will be used.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The persistenceMode. */ com.google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode getPersistenceMode(); /** + * + * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -38,11 +66,16 @@ public interface PersistenceConfigOrBuilder extends
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for rdbSnapshotPeriod. */ int getRdbSnapshotPeriodValue(); /** + * + * *
    * Optional. Period between RDB snapshots. Snapshots will be attempted every period
    * starting from the provided snapshot start time. For example, a start time
@@ -52,68 +85,99 @@ public interface PersistenceConfigOrBuilder extends
    * If not provided, TWENTY_FOUR_HOURS will be used as default.
    * 
* - * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rdbSnapshotPeriod. */ com.google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod(); /** + * + * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the rdbNextSnapshotTime field is set. */ boolean hasRdbNextSnapshotTime(); /** + * + * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The rdbNextSnapshotTime. */ com.google.protobuf.Timestamp getRdbNextSnapshotTime(); /** + * + * *
    * Output only. The next time that a snapshot attempt is scheduled to occur.
    * 
* - * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder(); /** + * + * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the rdbSnapshotStartTime field is set. */ boolean hasRdbSnapshotStartTime(); /** + * + * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rdbSnapshotStartTime. */ com.google.protobuf.Timestamp getRdbSnapshotStartTime(); /** + * + * *
    * Optional. Date and time that the first snapshot was/will be attempted, and to which
    * future snapshots will be aligned.
    * If not provided, the current time will be used.
    * 
* - * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java index 2df61e62..5611cedc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [RescheduleMaintenance][google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.RescheduleMaintenanceRequest} */ -public final class RescheduleMaintenanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RescheduleMaintenanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) RescheduleMaintenanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RescheduleMaintenanceRequest.newBuilder() to construct. private RescheduleMaintenanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RescheduleMaintenanceRequest() { name_ = ""; rescheduleType_ = 0; @@ -26,16 +44,15 @@ private RescheduleMaintenanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RescheduleMaintenanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RescheduleMaintenanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private RescheduleMaintenanceRequest( 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: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - rescheduleType_ = rawValue; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); + rescheduleType_ = rawValue; + break; } - scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = 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) { @@ -93,36 +114,41 @@ private RescheduleMaintenanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); } /** + * + * *
    * Reschedule options.
    * 
* * Protobuf enum {@code google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType} */ - public enum RescheduleType - implements com.google.protobuf.ProtocolMessageEnum { + public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -131,6 +157,8 @@ public enum RescheduleType */ RESCHEDULE_TYPE_UNSPECIFIED(0), /** + * + * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -139,6 +167,8 @@ public enum RescheduleType */ IMMEDIATE(1), /** + * + * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -148,6 +178,8 @@ public enum RescheduleType
      */
     NEXT_AVAILABLE_WINDOW(2),
     /**
+     *
+     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -159,6 +191,8 @@ public enum RescheduleType ; /** + * + * *
      * Not set.
      * 
@@ -167,6 +201,8 @@ public enum RescheduleType */ public static final int RESCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * If the user wants to schedule the maintenance to happen now.
      * 
@@ -175,6 +211,8 @@ public enum RescheduleType */ public static final int IMMEDIATE_VALUE = 1; /** + * + * *
      * If the user wants to use the existing maintenance policy to find the
      * next available window.
@@ -184,6 +222,8 @@ public enum RescheduleType
      */
     public static final int NEXT_AVAILABLE_WINDOW_VALUE = 2;
     /**
+     *
+     *
      * 
      * If the user wants to reschedule the maintenance to a specific time.
      * 
@@ -192,7 +232,6 @@ public enum RescheduleType */ public static final int SPECIFIC_TIME_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -217,50 +256,53 @@ public static RescheduleType valueOf(int value) { */ public static RescheduleType forNumber(int value) { switch (value) { - case 0: return RESCHEDULE_TYPE_UNSPECIFIED; - case 1: return IMMEDIATE; - case 2: return NEXT_AVAILABLE_WINDOW; - case 3: return SPECIFIC_TIME; - default: return null; + case 0: + return RESCHEDULE_TYPE_UNSPECIFIED; + case 1: + return IMMEDIATE; + case 2: + return NEXT_AVAILABLE_WINDOW; + case 3: + return SPECIFIC_TIME; + 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< - RescheduleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RescheduleType findValueByNumber(int number) { - return RescheduleType.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 RescheduleType findValueByNumber(int number) { + return RescheduleType.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.redis.v1beta1.RescheduleMaintenanceRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final RescheduleType[] VALUES = values(); - public static RescheduleType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RescheduleType 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,13 +322,18 @@ private RescheduleType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -295,31 +342,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -330,40 +379,61 @@ public java.lang.String getName() { public static final int RESCHEDULE_TYPE_FIELD_NUMBER = 2; private int rescheduleType_; /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override public int getRescheduleTypeValue() { + @java.lang.Override + public int getRescheduleTypeValue() { return rescheduleType_; } /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The rescheduleType. */ - @java.lang.Override public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { + @java.lang.Override + public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType + getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); - return result == null ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf( + rescheduleType_); + return result == null + ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED + : result; } public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp scheduleTime_; /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -371,27 +441,36 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { @@ -399,6 +478,7 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,12 +490,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (rescheduleType_ != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { + if (rescheduleType_ + != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, rescheduleType_); } if (scheduleTime_ != null) { @@ -433,13 +515,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (rescheduleType_ != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.RESCHEDULE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, rescheduleType_); + if (rescheduleType_ + != com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rescheduleType_); } if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -449,20 +532,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.redis.v1beta1.RescheduleMaintenanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest other = (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) obj; + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest other = + (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (rescheduleType_ != other.rescheduleType_) return false; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime() - .equals(other.getScheduleTime())) return false; + if (!getScheduleTime().equals(other.getScheduleTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -489,117 +571,127 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [RescheduleMaintenance][google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.RescheduleMaintenanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.class, + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.newBuilder() @@ -607,16 +699,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(); @@ -634,9 +725,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_RescheduleMaintenanceRequest_descriptor; } @java.lang.Override @@ -655,7 +746,8 @@ public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest result = new com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest(this); + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest result = + new com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest(this); result.name_ = name_; result.rescheduleType_ = rescheduleType_; if (scheduleTimeBuilder_ == null) { @@ -671,38 +763,39 @@ public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) other); } else { super.mergeFrom(other); return this; @@ -710,7 +803,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -740,7 +834,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -752,20 +847,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -774,22 +873,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -797,60 +899,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -858,73 +973,105 @@ public Builder setNameBytes( private int rescheduleType_ = 0; /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for rescheduleType. */ - @java.lang.Override public int getRescheduleTypeValue() { + @java.lang.Override + public int getRescheduleTypeValue() { return rescheduleType_; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for rescheduleType to set. * @return This builder for chaining. */ public Builder setRescheduleTypeValue(int value) { - + rescheduleType_ = value; onChanged(); return this; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The rescheduleType. */ @java.lang.Override - public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType() { + public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType + getRescheduleType() { @SuppressWarnings("deprecation") - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf(rescheduleType_); - return result == null ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED : result; + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType result = + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.valueOf( + rescheduleType_); + return result == null + ? com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The rescheduleType to set. * @return This builder for chaining. */ - public Builder setRescheduleType(com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType value) { + public Builder setRescheduleType( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType value) { if (value == null) { throw new NullPointerException(); } - + rescheduleType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
      * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearRescheduleType() { - + rescheduleType_ = 0; onChanged(); return this; @@ -932,45 +1079,61 @@ public Builder clearRescheduleType() { private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { @@ -986,16 +1149,18 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setScheduleTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleTimeBuilder_ == null) { scheduleTime_ = builderForValue.build(); onChanged(); @@ -1006,19 +1171,24 @@ public Builder setScheduleTime( return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { if (scheduleTime_ != null) { scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(scheduleTime_) + .mergeFrom(value) + .buildPartial(); } else { scheduleTime_ = value; } @@ -1030,13 +1200,16 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearScheduleTime() { if (scheduleTimeBuilder_ == null) { @@ -1050,61 +1223,74 @@ public Builder clearScheduleTime() { return this; } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - + onChanged(); return getScheduleTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { if (scheduleTimeBuilder_ != null) { return scheduleTimeBuilder_.getMessageOrBuilder(); } else { - return scheduleTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } } /** + * + * *
      * Optional. Timestamp when the maintenance shall be rescheduled to if
      * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
      * example `2012-11-15T16:19:00.094Z`.
      * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getScheduleTimeFieldBuilder() { if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), - getParentForChildren(), - isClean()); + scheduleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), getParentForChildren(), isClean()); scheduleTime_ = null; } return scheduleTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1114,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) private static final com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest(); } @@ -1128,16 +1314,16 @@ public static com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RescheduleMaintenanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RescheduleMaintenanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RescheduleMaintenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RescheduleMaintenanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,6 +1338,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java index 1200491c..a8333815 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/RescheduleMaintenanceRequestOrBuilder.java @@ -1,85 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface RescheduleMaintenanceRequestOrBuilder extends +public interface RescheduleMaintenanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.RescheduleMaintenanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for rescheduleType. */ int getRescheduleTypeValue(); /** + * + * *
    * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
    * 
* - * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The rescheduleType. */ com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType getRescheduleType(); /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** + * + * *
    * Optional. Timestamp when the maintenance shall be rescheduled to if
    * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    * example `2012-11-15T16:19:00.094Z`.
    * 
* - * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java index dd765994..89adf4fa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificate.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * TlsCertificate Resource
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.TlsCertificate} */ -public final class TlsCertificate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TlsCertificate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.TlsCertificate) TlsCertificateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TlsCertificate.newBuilder() to construct. private TlsCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TlsCertificate() { serialNumber_ = ""; cert_ = ""; @@ -27,16 +45,15 @@ private TlsCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TlsCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TlsCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,57 +72,64 @@ private TlsCertificate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - serialNumber_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - cert_ = s; - break; - } - case 26: { - 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(); + serialNumber_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); + cert_ = s; + break; } - expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); + case 26: + { + 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 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - sha1Fingerprint_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sha1Fingerprint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,34 +137,39 @@ private TlsCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.TlsCertificate.class, com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1beta1.TlsCertificate.class, + com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); } public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; private volatile java.lang.Object serialNumber_; /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The serialNumber. */ @java.lang.Override @@ -149,29 +178,29 @@ public java.lang.String getSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; } } /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The bytes for serialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getSerialNumberBytes() { + public com.google.protobuf.ByteString getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -182,11 +211,14 @@ public java.lang.String getSerialNumber() { public static final int CERT_FIELD_NUMBER = 2; private volatile java.lang.Object cert_; /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The cert. */ @java.lang.Override @@ -195,29 +227,29 @@ public java.lang.String getCert() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; } } /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The bytes for cert. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertBytes() { + public com.google.protobuf.ByteString getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cert_ = b; return b; } else { @@ -228,13 +260,17 @@ public java.lang.String getCert() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -242,13 +278,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -256,13 +296,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -272,13 +315,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -286,13 +333,17 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -300,13 +351,16 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -316,11 +370,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int SHA1_FINGERPRINT_FIELD_NUMBER = 5; private volatile java.lang.Object sha1Fingerprint_; /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The sha1Fingerprint. */ @java.lang.Override @@ -329,29 +386,29 @@ public java.lang.String getSha1Fingerprint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; } } /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The bytes for sha1Fingerprint. */ @java.lang.Override - public com.google.protobuf.ByteString - getSha1FingerprintBytes() { + public com.google.protobuf.ByteString getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -360,6 +417,7 @@ public java.lang.String getSha1Fingerprint() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,8 +429,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serialNumber_); } @@ -404,12 +461,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cert_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha1Fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sha1Fingerprint_); @@ -422,29 +477,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.redis.v1beta1.TlsCertificate)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.TlsCertificate other = (com.google.cloud.redis.v1beta1.TlsCertificate) obj; + com.google.cloud.redis.v1beta1.TlsCertificate other = + (com.google.cloud.redis.v1beta1.TlsCertificate) obj; - if (!getSerialNumber() - .equals(other.getSerialNumber())) return false; - if (!getCert() - .equals(other.getCert())) return false; + if (!getSerialNumber().equals(other.getSerialNumber())) return false; + if (!getCert().equals(other.getCert())) 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 (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } - if (!getSha1Fingerprint() - .equals(other.getSha1Fingerprint())) return false; + if (!getSha1Fingerprint().equals(other.getSha1Fingerprint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -475,118 +526,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.TlsCertificate 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.redis.v1beta1.TlsCertificate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.TlsCertificate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.TlsCertificate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.TlsCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.TlsCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TlsCertificate Resource
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.TlsCertificate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.TlsCertificate) com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_TlsCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.TlsCertificate.class, com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); + com.google.cloud.redis.v1beta1.TlsCertificate.class, + com.google.cloud.redis.v1beta1.TlsCertificate.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.TlsCertificate.newBuilder() @@ -594,16 +654,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -629,9 +688,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_TlsCertificate_descriptor; } @java.lang.Override @@ -650,7 +709,8 @@ public com.google.cloud.redis.v1beta1.TlsCertificate build() { @java.lang.Override public com.google.cloud.redis.v1beta1.TlsCertificate buildPartial() { - com.google.cloud.redis.v1beta1.TlsCertificate result = new com.google.cloud.redis.v1beta1.TlsCertificate(this); + com.google.cloud.redis.v1beta1.TlsCertificate result = + new com.google.cloud.redis.v1beta1.TlsCertificate(this); result.serialNumber_ = serialNumber_; result.cert_ = cert_; if (createTimeBuilder_ == null) { @@ -672,38 +732,39 @@ public com.google.cloud.redis.v1beta1.TlsCertificate buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.TlsCertificate) { - return mergeFrom((com.google.cloud.redis.v1beta1.TlsCertificate)other); + return mergeFrom((com.google.cloud.redis.v1beta1.TlsCertificate) other); } else { super.mergeFrom(other); return this; @@ -761,18 +822,20 @@ public Builder mergeFrom( private java.lang.Object serialNumber_ = ""; /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @return The serialNumber. */ public java.lang.String getSerialNumber() { java.lang.Object ref = serialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; @@ -781,20 +844,21 @@ public java.lang.String getSerialNumber() { } } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @return The bytes for serialNumber. */ - public com.google.protobuf.ByteString - getSerialNumberBytes() { + public com.google.protobuf.ByteString getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -802,54 +866,61 @@ public java.lang.String getSerialNumber() { } } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @param value The serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumber( - java.lang.String value) { + public Builder setSerialNumber(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serialNumber_ = value; onChanged(); return this; } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @return This builder for chaining. */ public Builder clearSerialNumber() { - + serialNumber_ = getDefaultInstance().getSerialNumber(); onChanged(); return this; } /** + * + * *
      * Serial number, as extracted from the certificate.
      * 
* * string serial_number = 1; + * * @param value The bytes for serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumberBytes( - com.google.protobuf.ByteString value) { + public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serialNumber_ = value; onChanged(); return this; @@ -857,18 +928,20 @@ public Builder setSerialNumberBytes( private java.lang.Object cert_ = ""; /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @return The cert. */ public java.lang.String getCert() { java.lang.Object ref = cert_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; @@ -877,20 +950,21 @@ public java.lang.String getCert() { } } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @return The bytes for cert. */ - public com.google.protobuf.ByteString - getCertBytes() { + public com.google.protobuf.ByteString getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cert_ = b; return b; } else { @@ -898,54 +972,61 @@ public java.lang.String getCert() { } } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @param value The cert to set. * @return This builder for chaining. */ - public Builder setCert( - java.lang.String value) { + public Builder setCert(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cert_ = value; onChanged(); return this; } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @return This builder for chaining. */ public Builder clearCert() { - + cert_ = getDefaultInstance().getCert(); onChanged(); return this; } /** + * + * *
      * PEM representation.
      * 
* * string cert = 2; + * * @param value The bytes for cert to set. * @return This builder for chaining. */ - public Builder setCertBytes( - com.google.protobuf.ByteString value) { + public Builder setCertBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cert_ = value; onChanged(); return this; @@ -953,45 +1034,64 @@ public Builder setCertBytes( 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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1007,16 +1107,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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(); @@ -1027,19 +1130,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } @@ -1051,13 +1158,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1071,54 +1182,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the certificate was created in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> 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_; @@ -1126,45 +1253,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1180,16 +1326,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -1200,19 +1349,23 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -1224,13 +1377,17 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -1244,54 +1401,70 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time when the certificate expires in [RFC
      * 3339](https://tools.ietf.org/html/rfc3339) format, for example
      * `2020-05-18T00:00:00.094Z`.
      * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -1299,18 +1472,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object sha1Fingerprint_ = ""; /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @return The sha1Fingerprint. */ public java.lang.String getSha1Fingerprint() { java.lang.Object ref = sha1Fingerprint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha1Fingerprint_ = s; return s; @@ -1319,20 +1494,21 @@ public java.lang.String getSha1Fingerprint() { } } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @return The bytes for sha1Fingerprint. */ - public com.google.protobuf.ByteString - getSha1FingerprintBytes() { + public com.google.protobuf.ByteString getSha1FingerprintBytes() { java.lang.Object ref = sha1Fingerprint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha1Fingerprint_ = b; return b; } else { @@ -1340,61 +1516,68 @@ public java.lang.String getSha1Fingerprint() { } } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @param value The sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1Fingerprint( - java.lang.String value) { + public Builder setSha1Fingerprint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha1Fingerprint_ = value; onChanged(); return this; } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @return This builder for chaining. */ public Builder clearSha1Fingerprint() { - + sha1Fingerprint_ = getDefaultInstance().getSha1Fingerprint(); onChanged(); return this; } /** + * + * *
      * Sha1 Fingerprint of the certificate.
      * 
* * string sha1_fingerprint = 5; + * * @param value The bytes for sha1Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha1FingerprintBytes( - com.google.protobuf.ByteString value) { + public Builder setSha1FingerprintBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha1Fingerprint_ = 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); } @@ -1404,12 +1587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.TlsCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.TlsCertificate) private static final com.google.cloud.redis.v1beta1.TlsCertificate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.TlsCertificate(); } @@ -1418,16 +1601,16 @@ public static com.google.cloud.redis.v1beta1.TlsCertificate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TlsCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TlsCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TlsCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TlsCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1442,6 +1625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.TlsCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java index 227722aa..9a5054f2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/TlsCertificateOrBuilder.java @@ -1,135 +1,188 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface TlsCertificateOrBuilder extends +public interface TlsCertificateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.TlsCertificate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The serialNumber. */ java.lang.String getSerialNumber(); /** + * + * *
    * Serial number, as extracted from the certificate.
    * 
* * string serial_number = 1; + * * @return The bytes for serialNumber. */ - com.google.protobuf.ByteString - getSerialNumberBytes(); + com.google.protobuf.ByteString getSerialNumberBytes(); /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The cert. */ java.lang.String getCert(); /** + * + * *
    * PEM representation.
    * 
* * string cert = 2; + * * @return The bytes for cert. */ - com.google.protobuf.ByteString - getCertBytes(); + com.google.protobuf.ByteString getCertBytes(); /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the certificate was created in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time when the certificate expires in [RFC
    * 3339](https://tools.ietf.org/html/rfc3339) format, for example
    * `2020-05-18T00:00:00.094Z`.
    * 
* - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The sha1Fingerprint. */ java.lang.String getSha1Fingerprint(); /** + * + * *
    * Sha1 Fingerprint of the certificate.
    * 
* * string sha1_fingerprint = 5; + * * @return The bytes for sha1Fingerprint. */ - com.google.protobuf.ByteString - getSha1FingerprintBytes(); + com.google.protobuf.ByteString getSha1FingerprintBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java index d49e123b..db85e44f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceRequest() { - } + + private UpdateInstanceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateInstanceRequest( 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.redis.v1beta1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = input.readMessage(com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.redis.v1beta1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage( + com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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) { @@ -92,29 +113,33 @@ private UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, + com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -126,7 +151,9 @@ private UpdateInstanceRequest(
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -134,6 +161,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -145,7 +174,9 @@ public boolean hasUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -153,6 +184,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -164,7 +197,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -174,12 +208,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.redis.v1beta1.Instance instance_; /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -187,25 +226,36 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.redis.v1beta1.Instance getInstance() { - return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -213,6 +263,7 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +275,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -242,12 +292,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 (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,22 +305,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.redis.v1beta1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.UpdateInstanceRequest other = (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) obj; + com.google.cloud.redis.v1beta1.UpdateInstanceRequest other = + (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,117 +346,126 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.redis.v1beta1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpdateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.UpdateInstanceRequest) com.google.cloud.redis.v1beta1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpdateInstanceRequest.class, + com.google.cloud.redis.v1beta1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.UpdateInstanceRequest.newBuilder() @@ -417,16 +473,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +501,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -467,7 +522,8 @@ public com.google.cloud.redis.v1beta1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.UpdateInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.UpdateInstanceRequest result = new com.google.cloud.redis.v1beta1.UpdateInstanceRequest(this); + com.google.cloud.redis.v1beta1.UpdateInstanceRequest result = + new com.google.cloud.redis.v1beta1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -486,38 +542,39 @@ public com.google.cloud.redis.v1beta1.UpdateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +582,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.UpdateInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -551,7 +609,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,8 +622,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_; /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -576,13 +640,17 @@ public Builder mergeFrom(
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -594,17 +662,23 @@ public boolean hasUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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(); } } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -616,7 +690,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -632,6 +707,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -643,10 +720,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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(); @@ -657,6 +734,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -668,13 +747,14 @@ public Builder setUpdateMask(
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -686,6 +766,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -697,7 +779,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -711,6 +794,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -722,14 +807,17 @@ public Builder clearUpdateMask() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -741,17 +829,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; } } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in
      * this field. The elements of the repeated paths field may only include these
@@ -763,17 +855,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *  *   `replica_count`
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; @@ -781,42 +877,61 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.redis.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.redis.v1beta1.Instance, + com.google.cloud.redis.v1beta1.Instance.Builder, + com.google.cloud.redis.v1beta1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.redis.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -832,15 +947,18 @@ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -851,18 +969,24 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -874,12 +998,16 @@ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -893,58 +1021,74 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.redis.v1beta1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. Update description.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder> + com.google.cloud.redis.v1beta1.Instance, + com.google.cloud.redis.v1beta1.Instance.Builder, + com.google.cloud.redis.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1beta1.Instance, com.google.cloud.redis.v1beta1.Instance.Builder, com.google.cloud.redis.v1beta1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1beta1.Instance, + com.google.cloud.redis.v1beta1.Instance.Builder, + com.google.cloud.redis.v1beta1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +1098,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.UpdateInstanceRequest) private static final com.google.cloud.redis.v1beta1.UpdateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.UpdateInstanceRequest(); } @@ -968,16 +1112,16 @@ public static com.google.cloud.redis.v1beta1.UpdateInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java index 44e3132a..b31c028a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface UpdateInstanceRequestOrBuilder extends +public interface UpdateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -19,11 +37,15 @@ public interface UpdateInstanceRequestOrBuilder extends
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -35,11 +57,15 @@ public interface UpdateInstanceRequestOrBuilder extends
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in
    * this field. The elements of the repeated paths field may only include these
@@ -51,37 +77,52 @@ public interface UpdateInstanceRequestOrBuilder extends
    *  *   `replica_count`
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.redis.v1beta1.Instance getInstance(); /** + * + * *
    * Required. Update description.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.redis.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java index 714297a3..cec7c228 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpgradeInstanceRequest} */ -public final class UpgradeInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpgradeInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.UpgradeInstanceRequest) UpgradeInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpgradeInstanceRequest.newBuilder() to construct. private UpgradeInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpgradeInstanceRequest() { name_ = ""; redisVersion_ = ""; @@ -26,16 +44,15 @@ private UpgradeInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpgradeInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpgradeInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private UpgradeInstanceRequest( 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(); - redisVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + redisVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private UpgradeInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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 @@ -118,31 +144,33 @@ 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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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 { @@ -153,11 +181,14 @@ public java.lang.String getName() { public static final int REDIS_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object redisVersion_; /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The redisVersion. */ @java.lang.Override @@ -166,29 +197,29 @@ public java.lang.String getRedisVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; } } /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for redisVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getRedisVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -239,17 +270,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.redis.v1beta1.UpgradeInstanceRequest)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest other = (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) obj; + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest other = + (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRedisVersion() - .equals(other.getRedisVersion())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRedisVersion().equals(other.getRedisVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1beta1.UpgradeInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.UpgradeInstanceRequest) com.google.cloud.redis.v1beta1.UpgradeInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.class, + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.Builder.class); } // Construct using com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.newBuilder() @@ -389,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override @@ -431,7 +470,8 @@ public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest build() { @java.lang.Override public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest buildPartial() { - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest result = new com.google.cloud.redis.v1beta1.UpgradeInstanceRequest(this); + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest result = + new com.google.cloud.redis.v1beta1.UpgradeInstanceRequest(this); result.name_ = name_; result.redisVersion_ = redisVersion_; onBuilt(); @@ -442,38 +482,39 @@ public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1beta1.UpgradeInstanceRequest)other); + return mergeFrom((com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.redis.v1beta1.UpgradeInstanceRequest other) { - if (other == com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.redis.v1beta1.UpgradeInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -509,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.redis.v1beta1.UpgradeInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,20 +564,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.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; @@ -543,22 +590,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string name = 1 [(.google.api.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 { @@ -566,60 +616,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * string 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. Redis instance resource name using the form:
      *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
      * where `location_id` refers to a GCP region.
      * 
* - * 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; @@ -627,18 +690,20 @@ public Builder setNameBytes( private java.lang.Object redisVersion_ = ""; /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The redisVersion. */ public java.lang.String getRedisVersion() { java.lang.Object ref = redisVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redisVersion_ = s; return s; @@ -647,20 +712,21 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for redisVersion. */ - public com.google.protobuf.ByteString - getRedisVersionBytes() { + public com.google.protobuf.ByteString getRedisVersionBytes() { java.lang.Object ref = redisVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redisVersion_ = b; return b; } else { @@ -668,61 +734,68 @@ public java.lang.String getRedisVersion() { } } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersion( - java.lang.String value) { + public Builder setRedisVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + redisVersion_ = value; onChanged(); return this; } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRedisVersion() { - + redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /** + * + * *
      * Required. Specifies the target version of Redis software to upgrade to.
      * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for redisVersion to set. * @return This builder for chaining. */ - public Builder setRedisVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisVersion_ = 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); } @@ -732,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.UpgradeInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.UpgradeInstanceRequest) private static final com.google.cloud.redis.v1beta1.UpgradeInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.UpgradeInstanceRequest(); } @@ -746,16 +819,16 @@ public static com.google.cloud.redis.v1beta1.UpgradeInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -770,6 +843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.UpgradeInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java index 53ec67b6..3e0c6ef3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface UpgradeInstanceRequestOrBuilder extends +public interface UpgradeInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.UpgradeInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.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. Redis instance resource name using the form:
    *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
    * where `location_id` refers to a GCP region.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The redisVersion. */ java.lang.String getRedisVersion(); /** + * + * *
    * Required. Specifies the target version of Redis software to upgrade to.
    * 
* * string redis_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for redisVersion. */ - com.google.protobuf.ByteString - getRedisVersionBytes(); + com.google.protobuf.ByteString getRedisVersionBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java index 7166b000..a39cd1a5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindow.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Time window in which disruptive maintenance updates occur. Non-disruptive
  * updates can occur inside or outside this window.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.WeeklyMaintenanceWindow}
  */
-public final class WeeklyMaintenanceWindow extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WeeklyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow)
     WeeklyMaintenanceWindowOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WeeklyMaintenanceWindow.newBuilder() to construct.
   private WeeklyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WeeklyMaintenanceWindow() {
     day_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WeeklyMaintenanceWindow();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private WeeklyMaintenanceWindow(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,45 +71,49 @@ private WeeklyMaintenanceWindow(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            day_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.type.TimeOfDay.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
-            }
-            startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+              day_ = rawValue;
+              break;
             }
+          case 18:
+            {
+              com.google.type.TimeOfDay.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (duration_ != null) {
-              subBuilder = duration_.toBuilder();
-            }
-            duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(duration_);
-              duration_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (duration_ != null) {
+                subBuilder = duration_.toBuilder();
+              }
+              duration_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(duration_);
+                duration_ = 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) {
@@ -100,48 +121,58 @@ private WeeklyMaintenanceWindow(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
+            com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class,
+            com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
   }
 
   public static final int DAY_FIELD_NUMBER = 1;
   private int day_;
   /**
+   *
+   *
    * 
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for day. */ - @java.lang.Override public int getDayValue() { + @java.lang.Override + public int getDayValue() { return day_; } /** + * + * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The day. */ - @java.lang.Override public com.google.type.DayOfWeek getDay() { + @java.lang.Override + public com.google.type.DayOfWeek getDay() { @SuppressWarnings("deprecation") com.google.type.DayOfWeek result = com.google.type.DayOfWeek.valueOf(day_); return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; @@ -150,11 +181,14 @@ private WeeklyMaintenanceWindow( public static final int START_TIME_FIELD_NUMBER = 2; private com.google.type.TimeOfDay startTime_; /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -162,11 +196,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startTime. */ @java.lang.Override @@ -174,6 +211,8 @@ public com.google.type.TimeOfDay getStartTime() { return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
@@ -188,11 +227,15 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration duration_; /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ @java.lang.Override @@ -200,11 +243,15 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ @java.lang.Override @@ -212,11 +259,14 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -224,6 +274,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { output.writeEnum(1, day_); } @@ -256,16 +306,13 @@ public int getSerializedSize() { size = 0; if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, day_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, day_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -275,23 +322,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.redis.v1beta1.WeeklyMaintenanceWindow)) { return super.equals(obj); } - com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow other = (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) obj; + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow other = + (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) obj; if (day_ != other.day_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,96 +366,104 @@ public int hashCode() { } public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow prototype) { + + public static Builder newBuilder( + com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Time window in which disruptive maintenance updates occur. Non-disruptive
    * updates can occur inside or outside this window.
@@ -417,21 +471,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.WeeklyMaintenanceWindow}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow)
       com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
+              com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.class,
+              com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.newBuilder()
@@ -439,16 +495,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -470,9 +525,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_WeeklyMaintenanceWindow_descriptor;
     }
 
     @java.lang.Override
@@ -491,7 +546,8 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow buildPartial() {
-      com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow result = new com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow(this);
+      com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow result =
+          new com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow(this);
       result.day_ = day_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -511,38 +567,39 @@ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow)other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -550,7 +607,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow other) {
-      if (other == com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance()) return this;
+      if (other == com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance())
+        return this;
       if (other.day_ != 0) {
         setDayValue(other.getDayValue());
       }
@@ -579,7 +637,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -591,37 +650,47 @@ public Builder mergeFrom(
 
     private int day_ = 0;
     /**
+     *
+     *
      * 
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for day. */ - @java.lang.Override public int getDayValue() { + @java.lang.Override + public int getDayValue() { return day_; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The enum numeric value on the wire for day to set. * @return This builder for chaining. */ public Builder setDayValue(int value) { - + day_ = value; onChanged(); return this; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The day. */ @java.lang.Override @@ -631,11 +700,14 @@ public com.google.type.DayOfWeek getDay() { return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The day to set. * @return This builder for chaining. */ @@ -643,21 +715,24 @@ public Builder setDay(com.google.type.DayOfWeek value) { if (value == null) { throw new NullPointerException(); } - + day_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The day of week that maintenance updates occur.
      * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDay() { - + day_ = 0; onChanged(); return this; @@ -665,24 +740,33 @@ public Builder clearDay() { private com.google.type.TimeOfDay startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> startTimeBuilder_; + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startTime. */ public com.google.type.TimeOfDay getStartTime() { @@ -693,6 +777,8 @@ public com.google.type.TimeOfDay getStartTime() { } } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -713,14 +799,15 @@ public Builder setStartTime(com.google.type.TimeOfDay value) { return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime( - com.google.type.TimeOfDay.Builder builderForValue) { + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -731,6 +818,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -741,7 +830,7 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.type.TimeOfDay.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -753,6 +842,8 @@ public Builder mergeStartTime(com.google.type.TimeOfDay value) { return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -771,6 +862,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -778,11 +871,13 @@ public Builder clearStartTime() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -793,11 +888,12 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; } } /** + * + * *
      * Required. Start time of the window in UTC time.
      * 
@@ -805,14 +901,17 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -820,24 +919,35 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -848,11 +958,14 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -868,14 +981,16 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -886,17 +1001,20 @@ public Builder setDuration( return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -908,11 +1026,14 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDuration() { if (durationBuilder_ == null) { @@ -926,55 +1047,66 @@ public Builder clearDuration() { return this; } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
      * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
      * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1116,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) } // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) private static final com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow(); } @@ -998,16 +1130,16 @@ public static com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WeeklyMaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeeklyMaintenanceWindow(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WeeklyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WeeklyMaintenanceWindow(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,6 +1154,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java index 36fc5f5c..588c9b09 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/WeeklyMaintenanceWindowOrBuilder.java @@ -1,50 +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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; -public interface WeeklyMaintenanceWindowOrBuilder extends +public interface WeeklyMaintenanceWindowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.WeeklyMaintenanceWindow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for day. */ int getDayValue(); /** + * + * *
    * Required. The day of week that maintenance updates occur.
    * 
* * .google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The day. */ com.google.type.DayOfWeek getDay(); /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
* * .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startTime. */ com.google.type.TimeOfDay getStartTime(); /** + * + * *
    * Required. Start time of the window in UTC time.
    * 
@@ -54,29 +84,40 @@ public interface WeeklyMaintenanceWindowOrBuilder extends com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
    * 
* - * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java rename to proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java index 59b7b0ac..5aa6feb6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.java +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadata.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/redis/v1beta1/cloud_redis.proto package com.google.cloud.redis.v1beta1; /** + * + * *
  * Defines specific information for a particular zone. Currently empty and
  * reserved for future use only.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.redis.v1beta1.ZoneMetadata}
  */
-public final class ZoneMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ZoneMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.ZoneMetadata)
     ZoneMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ZoneMetadata.newBuilder() to construct.
   private ZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ZoneMetadata() {
-  }
+
+  private ZoneMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ZoneMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ZoneMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,13 +69,13 @@ private ZoneMetadata(
           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) {
@@ -67,27 +83,30 @@ private ZoneMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
+    return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+        .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.redis.v1beta1.ZoneMetadata.class, com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
+            com.google.cloud.redis.v1beta1.ZoneMetadata.class,
+            com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -99,8 +118,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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);
   }
 
@@ -118,12 +136,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.redis.v1beta1.ZoneMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.redis.v1beta1.ZoneMetadata other = (com.google.cloud.redis.v1beta1.ZoneMetadata) obj;
+    com.google.cloud.redis.v1beta1.ZoneMetadata other =
+        (com.google.cloud.redis.v1beta1.ZoneMetadata) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -141,97 +160,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata 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.redis.v1beta1.ZoneMetadata parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.redis.v1beta1.ZoneMetadata parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.redis.v1beta1.ZoneMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.redis.v1beta1.ZoneMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Defines specific information for a particular zone. Currently empty and
    * reserved for future use only.
@@ -239,21 +265,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.redis.v1beta1.ZoneMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.ZoneMetadata)
       com.google.cloud.redis.v1beta1.ZoneMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.redis.v1beta1.ZoneMetadata.class, com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
+              com.google.cloud.redis.v1beta1.ZoneMetadata.class,
+              com.google.cloud.redis.v1beta1.ZoneMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.redis.v1beta1.ZoneMetadata.newBuilder()
@@ -261,16 +289,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();
@@ -278,9 +305,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto.internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+          .internal_static_google_cloud_redis_v1beta1_ZoneMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -299,7 +326,8 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.redis.v1beta1.ZoneMetadata buildPartial() {
-      com.google.cloud.redis.v1beta1.ZoneMetadata result = new com.google.cloud.redis.v1beta1.ZoneMetadata(this);
+      com.google.cloud.redis.v1beta1.ZoneMetadata result =
+          new com.google.cloud.redis.v1beta1.ZoneMetadata(this);
       onBuilt();
       return result;
     }
@@ -308,38 +336,39 @@ public com.google.cloud.redis.v1beta1.ZoneMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.redis.v1beta1.ZoneMetadata) {
-        return mergeFrom((com.google.cloud.redis.v1beta1.ZoneMetadata)other);
+        return mergeFrom((com.google.cloud.redis.v1beta1.ZoneMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -376,9 +405,9 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -388,12 +417,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.ZoneMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ZoneMetadata)
   private static final com.google.cloud.redis.v1beta1.ZoneMetadata DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.ZoneMetadata();
   }
@@ -402,16 +431,16 @@ public static com.google.cloud.redis.v1beta1.ZoneMetadata getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ZoneMetadata parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ZoneMetadata(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ZoneMetadata parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ZoneMetadata(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -426,6 +455,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.redis.v1beta1.ZoneMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.java
new file mode 100644
index 00000000..2668fe68
--- /dev/null
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ZoneMetadataOrBuilder.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/redis/v1beta1/cloud_redis.proto
+
+package com.google.cloud.redis.v1beta1;
+
+public interface ZoneMetadataOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.ZoneMetadata)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto b/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
rename to proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
rename to samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java